Changes

Jump to navigation Jump to search
47 bytes removed ,  17:33, 28 July 2020
=XQuery Locks=
{{Mark|Updated with Version 9.4:}} Single lock option for reads and writes.
By default, access to external resources (files on hard disk, HTTP requests, ...) is not controlled by the transaction monitor of BaseX. Custom locks can be assigned via annotations, pragmas or options:
* Locks A lock string may one consist of a single key or multiple keys (separated with commas). The default value is an empty string.* The internal Internal locks and XQuery locks can co-exist. No conflicts arise, even if a lock string equals the name of a database that is locked by the transaction manager.* The lock may be is transformed to into a write lock by cominthe operations as Similar to making the internal database locks, write locks block all other operations while read locks allow parallel accesscorresponding expression updating.
==Annotations==
<syntaxhighlight lang="xquery">
update:output((# basex:lock CONFIG #) {
file:write('config.xml', <config/>)
=> update:output(})}
</syntaxhighlight>
=Changelog=
 
;Version 9.4
* Updated: Single lock option for reads and writes.
;Version 9.1
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu