Revision [1880]

Last edited on 2013-02-03 16:56:51 by DavidLee
Additions:
ml:query -v -f test.xq id 123
Deletions:
ml:query-v -f test.xq id 123


Revision [1452]

Edited on 2010-06-04 12:13:24 by DavidLee
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


Revision [1293]

Edited on 2010-03-06 11:06:56 by DavidLee
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.
Deletions:
query [-c uri|-connect uri] [-t] [-v] [-q script | -f scriptfile] [varname value [varname value ...]]


Revision [1278]

Edited on 2010-03-01 14:10:41 by DavidLee
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'"
Deletions:
-connect uri
-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'"


Revision [472]

The oldest known version of this page was created on 2009-04-10 16:38:44 by DavidLee
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki