Changes

Jump to navigation Jump to search
4 bytes added ,  12:17, 7 February 2019
no edit summary
Usage: basexserver [-cdnpSz] [stop]
stop Stop running server
-c<cmdinput> Execute commands from file or string
-d Enable debugging output
-n<name> Set host the server is bound to
|
|- valign="top"
| {{Code|-c&lt;cmdinput&gt;}}
| Executes [[commands]]:
* Several commands in the input can be separated by semicolons ({{Code|;}}).
Usage: basexclient [-bcdiInopPqrRsUvVwxz] [input]
[input] XQuery or command file, or query string
-b<parsargs> Bind external query variables
-c<input> Execute commands from file or string
-d Toggle debugging output
-I<input> Bind input string to context
-n<name> Set server (host) name
-o<filepath> Write output to local file
-p<port> Set server port
-P<pass> Specify user password
-r<num> Run query multiple times
-R Toggle query execution
-s<parsargs> Set serialization parameters
-U<name> Specify user name
-v Toggle output of progress info
|• {{Code|"doc('X')//head"}}<br/>• {{Code|query.xq}}<br/>• {{Code|commands.bxs}}<br/>
|- valign="top"
| {{Code|-b&lt;parsargs&gt;}}
| Binds external variables to XQuery expressions. This flag may be specified multiple times. Variables names and their values are delimited by equality signs (<code>=</code>). The names may be optionally prefixed with dollar signs. If a variable uses a namespace different to the default namespace, it can be specified with the [http://www.jclark.com/xml/xmlns.htm Clark Notation] or [http://www.w3.org/TR/xquery-30/#id-basics Expanded QName Notation].
| <code>[[Options#BINDINGS|BINDINGS]]</code>
| {{Code|-nserver.basex.org}}
|- valign="top"
| {{Code|-o&lt;filepath&gt;}}
| All command and query output is written to the specified file.
|
| {{Code|-V -R "1"}}
|- valign="top"
| {{Code|-s&lt;parsargs&gt;}}
| Specifies parameters for serializing XQuery results; see [[Serialization]] for more details. This flag may be specified multiple times. Key and values are separated by the equality sign (<code>=</code>).
| <code>[[Options#SERIALIZER|SERIALIZER]]</code>
administrator, editor
162

edits

Navigation menu