Additions:
ml:query -v -f test.xq id 123
Deletions:
Additions:
||-b,-bool||No output. Returns with the effective boolean value||
if -b is specified then no output. Exits (return value) with 0 if the effective boolean value is true, otherwise 1
Test if a document exists
ml:query -b "exists(doc('/foo/bar'))" && echo document /foo/bar/ exists
if -b is specified then no output. Exits (return value) with 0 if the effective boolean value is true, otherwise 1
Test if a document exists
ml:query -b "exists(doc('/foo/bar'))" && echo document /foo/bar/ exists
Additions:
query [options] [query] [varname value [varname value ...]]
====Options====
If neither -q or -f is specified then the first argument after any options is taken to be the query string.
====Options====
If neither -q or -f is specified then the first argument after any options is taken to be the query string.
Deletions:
Additions:
||-c,connect uri||Use the connection string instead of $MLCONNECT||
||-t||Output result as text (instead of xml).||
||-v||Assign variables (parameters) from the remaining arguments||
||-q script||xquery to run passed as an argument||
||-f scriptfile||file containing the xquery.||
ml:query-v -f test.xq id 123
ml:query -q "'Hello World'"
||-t||Output result as text (instead of xml).||
||-v||Assign variables (parameters) from the remaining arguments||
||-q script||xquery to run passed as an argument||
||-f scriptfile||file containing the xquery.||
ml:query-v -f test.xq id 123
ml:query -q "'Hello World'"
Deletions:
-c uri Use the connection string instead of $MLCONNECT
-t Output result as text (instead of xml).
-v Assign variables (parameters) from the remaining arguments
-q script xquery to run passed as an argument
-f scriptfile file containing the xquery.
$ ml:query-v -f test.xq id 123
$ ml:query -q "'Hello World'"