Changes

Jump to navigation Jump to search
39 bytes added ,  15:45, 29 March 2015
no edit summary
Various ways exist to access and change options:
* The current value of an option can be requested with the [[Commands#GET|GET]] and command. Local options can be changed with the via [[Commands#SET|SET]] command. All values are ''static'': they 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 current value will be inverted.
* Initial values for global options can also be specified via system properties, which can e.g. be passed on with the [http://docs.oracle.com/javase/1.4.2/docs/tooldocs/windows/java.html#options -D flag] on command line, or using [http://docs.oracle.com/javase/6/docs/api/java/lang/System.html#setProperty(java.lang.String,%20java.lang.String) System.setProperty()] before creating a BaseX instance. The specified keys need to be prefixed with {{Code|org.basex.}}. An example:
<pre class="brush:bash">
</pre>
* Options Local options can also be set in the prolog of an XQuery expression. In the option declaration, options need to be bound to the [[Database Module]] namespace. All values will be reset after the evaluation of a query:
<pre class="brush:xquery">
</pre>
* Options Beside that, local options can also be applied locally by using pragmas:
<pre class="brush:xquery">
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu