Thank you for you answer. I have ever used many contexts to store many databases but the EVENT coundn't work properly. Dimitar has adviced me that I should use one context for many databases. It has worked well until I used AlterDB. How should I do to use many databases on one context?
Quoting Christian Grün christian.gruen@gmail.com:
Thanks for your response. I use "pin" so that a context can store many databases. If I don't use "pin", a newest database will override the current database (see context.dbs.list.elementData). Please tell me how can I use many database on one context.
?I see. Sounds like a dangerous journey, because the whole architecture relies on the concept that only one database is opened in the current context. Why do you want to keep more than one database opened at the same time?
Christian __________________________
Quoting Christian Grün christian.gruen@gmail.com:
Hi,
it?s probably a better idea to avoid explicit (un)pinning of nodes;
all commands should correctly do this for you. Out of interest: why did you choose to do pinning by yourself?
Best, Christian _____________________________
Dear BaseX team, I want to ask you how to use the class AlterDB to change a database name. It always throws the exception DB_PINNED_X although I use "unpin" before using AlterDB. I found the problem is that the method TableDiskAccess.locked(db, this) always returns "true". Please see the attachment and help me solve the problem. Thanks in advance.