Revision [1452]
Last edited on 2010-06-04 12:13:24 by DavidLeeAdditions:
||-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
Revision [1293]
Edited on 2010-03-06 11:06:56 by DavidLeeAdditions:
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:
Revision [1278]
Edited on 2010-03-01 14:10:41 by DavidLeeAdditions:
||-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'"