Changes

Jump to navigation Jump to search
330 bytes added ,  11:05, 28 August 2023
no edit summary
=Standalone=
{{Announce|Added with Version 11:}} {{Code|-C}}, {{Code|-W}} flag.
The following options are available for the standalone [[Command-Line Client]]:
-o<path> Write output to local file
-q<expr> Execute XQuery expression
-Q<file> Execute XQuery file
-r<num> Run query multiple times
-R Toggle query execution
| {{Code|[input]}}
|Evaluates the specified input:
* The input string may point to an existing file. If the file suffix is {{Code|.bxs}}, the file contents will be evaluated executed as [[Commands#Basics|Command Script]]; any other file content will be evaluated as XQuery expression.
* Otherwise, the input string itself is evaluated as XQuery expression.
|
|- valign="top"
| {{Code|-q&lt;expr&gt;}}
| Executes Evaluates the specified string as XQuery expression.
|
|
| {{Code|-q"doc('input')//head"}}
|- valign="top"
| {{Code|-Q&lt;file&gt;}}
| Evaluates the contents of the specified file as XQuery expression.
|
|
|
|- valign="top"
| {{Code|-r&lt;num&gt;}}
=Client=
{{Announce|Added with Version 11:}} {{Code|-C}}, {{Code|-W}} flag.
If the [[Database Server|Database Client]] is launched, you will be requested for a username and password.
-P<pass> Specify user password
-q<expr> Execute XQuery expression
-Q<file> Execute XQuery file
-r<num> Run query multiple times
-R Toggle query execution
|
| {{Code|-q"1+2"}}
|- valign="top"
| {{Code|-Q&lt;file&gt;}}
| Evaluates the contents of the specified file as XQuery expression.
|
|
|
|- valign="top"
| {{Code|-r&lt;num&gt;}}
;Version 11.0
* Added: {{Code|-Q}} and {{Code|-W}} in standalone and client mode.
;Version 10.0
Bureaucrats, editor, reviewer, Administrators
13,554

edits

Navigation menu