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:
* {{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
All of these queries can be executed in parallel.
; Some examples on queries that are not supported by database-locking yet:
* <code>let $db := 'factbook' return doc($db)</code>, will read lock globally: referencing database names isn’t supported yet