Changes

Jump to navigation Jump to search
90 bytes removed ,  16:10, 20 February 2018
==BaseX Pragmas==
Many optimizations in BaseX are restricted to will only be performed if an expression is ''deterministic'' expressions (which i. e., if it always yield yields the same output and do does not have any side effects). By flagging an expression as non-deterministic, optimizations and query rewritings can be suppressed:
<pre class="brush:xquery">
</pre>
This pragma can e. g. be helpful when debugging your code.
==Database Pragmas==
A All [[Options|local database optionoptions]] can also be assigned locally via a pragmapragmas. ExamplesSome examples:
* Whitespace chopping is disabled for a particular document (see {{Option|CHOP}}): <pre class="brush:xquery">(# db:chop false #) { doc('doc.xml') }</pre> * {{Version|9.0}}: Enforce query to be rewritten for index rewriting access. This can e. g. be helpful if the name of a database name is not static (see [[Indexes#Enforce Rewritings|Enforce Rewritings]] for more examples):
<pre class="brush:xquery">
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu