Changes

Jump to navigation Jump to search
2 bytes added ,  19:54, 29 October 2013
===XQuery Locking Options===
Custom locks can be acquired by setting the BaseX-specific XQuery options {{Code|query:read-lock}} and {{Code|query:write-lock}}. It accepts arbitrary strings, for locking. The Multiple option declaration may occur in the prolog of a query, but multiple values can also be set multiple times to acquire multiple locks, or use separated with commas in a colon as separator between themsingle declaration. These locks are in another namespace than the database names, locking ": the lock value {{Code|factbook" using the options does }} will not lock the a database named factbook.
These options option declarations will put read locks on ''foo'', ''bar'' and ''batz'' and a write lock on ''quix''.
<pre class="brush:xquery">declare option query:read-lock "foo,bar";
declare option query:read-lock "batz";
declare option query:write-lock "quix";</pre>
===Java Modules===
Bureaucrats, editor, reviewer, Administrators
13,554

edits

Navigation menu