The current identification of which databases to lock is limited to [[commands]] using no glob syntax and queries that access the currently opened database, XQuery functions that explicitly specify a database, and expressions that address no database at all.
Some examples on database-locking enabled commands and queries:
* {{Code|CREATE DB newdb}}, write-locking of "newdb"
* {{Code|ADD input.xml}}, write-locking of the database opened by a client
Some examples on database-locking enabled queries:
* {{Code|//item}}, read-locking of the database opened by a client
* {{Code|doc('factbook')}}, read-locking of "factbook"