==XQuery Locks==
In analogy with option declarations and pragmas, locks can also set via annotations. See [[TransactionsTransaction Management#XQuery_LocksAnnotations|XQuery LocksTransaction Management]] can also set via annotations: <syntaxhighlight lang="xquery">declare %basex:write-lock('CONFIGLOCK') function local:write() { file:write('configfor details and examples.xml', <config/>)};</syntaxhighlight>
=Non-Determinism=