Changes

Jump to navigation Jump to search
No change in size ,  04:29, 7 September 2012
m
Text replace - "7.4" to "7.5"
* The current value of an option can be requested with the [[Commands#GET|GET]] and changed with the [[Commands#SET|SET]] command. All values are ''static'': 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.
* {{Version|7.45}}: Initial values for 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 needs to be prefixed with {{Code|org.basex.}}. An example:
<pre class="brush:bash">
</pre>
* {{Version|7.45}}: Options can be locally set in XQuery via pragma expressions. Note that pragmas will have no effect on most [[Update|update operations]], as these will be evaluated at the very end of a query. Another example:
<pre class="brush:xquery">
All global options are stored in the [[Configuration#Configuration Files|configuration file]] {{Code|.basex}}, which is parsed by every new local BaseX instance.
With {{Version|7.45}}, once they have been parsed, global options will be fixed; they can only be changed before a BaseX instance is started. This reduces the risk of side effects and security holes.
==General==
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu