Changes

Jump to navigation Jump to search
397 bytes added ,  00:51, 27 July 2012
no edit summary
* Values can be changed with the [[Commands#SET|SET]] command and requested with the [[Commands#GET|GET]] command. All values are ''statically bound'' to a database session; they stay valid until they are changed once again by another operation. If an option is of type boolean, and if no value is specified, its existing value will be inverted.
 
* Options can also be set in the prolog of XQuery expressions. In the option declaration, keys need to be prefixed with {{Code|db:}}. All values will be reset after the evaluation of a query:
...
</pre>
 
* {{Version|7.4}}: Options can be locally set in XQuery via pragma expressions. Note that, at least for now, local pragmas will have no effect on most [[Update|update operations]], as these will be evaluated at the very end of a query. The following query preserves whitespaces from the parsed XML string:
 
<pre class="brush:xquery">
(# db:chop false #) { parse-xml('<xml> hi </xml>') }
</pre>
 
* If options are implicitly changed by operations in the [[GUI]], the underlying commands will be listed in the [[GUI#Visualizations|Info View]].<br/>&nbsp;
Bureaucrats, editor, reviewer, Administrators
12,234

edits

Navigation menu