* <code>let $db := 'test' return insert nodes <test/> into doc($db)</code>
You can consult the query info output (which you find in the [[GUI#Visualizations|Info View]] of the GUI or which you can turn on by setting <code>[[Options#QUERYINFO{{Option|QUERYINFO]]</code> }} to {{Code|true}}) to find out which databases have been locked by a query.
=File-System Locks=