Bind external variables to XQuery expression. Flag may be specified
multiple times; key/value pairs are separated by equality signs (=)
(-bv=example -q"declare variable $v external; $v")
-c<cmd>
Launch database commands and skip interactive mode. The flag should be placed last, all remaining characters are interpreted as commands. Several commands can be separated by semicolons. (-c"list;info")
-d
Turn on debugging. Debugging information is output to standard error.
-n<name>
Specify the server name on which the server is running. (default: localhost, -nserver.basex.org)
-o<file>
Command and query output is written to the specified <file>.
-p<num>
Specify the port on which the server is running. (default: 1984, -p9999)
-P<pass>
Specify the user password (-Uadmin-Padmin)
-q<expr>
Execute the specified string as XQuery expression. The flag should be placed last, as all remaining characters are interpreted as XQuery. (-q"doc('input')//head")
-s<pars>
Specify parameters for serializing XQuery results; This flag may be specified multiple times; key/value pairs are separated by equality signs (=). (-smethod=text)
-U<name>
Specify the user name (-Uadmin)
-v
Process information is written to standard output.
-V
Detailed query information is written to standard output, including compilation and profiling steps.
-w
By default, whitespaces around text nodes are chopped when a database is created. This flag can be specified to suppress chopping.
-z
Skip the serialization of XQuery results. This flag is useful for analyzing query plans.
BaseX started as a research project of the Database and Information Systems
Group (DBIS) at the University of Konstanz in 2005 and soon turned into a
feature-rich open source XML database and XPath/XQuery processor.