Revision [1790]
Last edited on 2011-10-27 13:45:17 by DavidLeeAdditions:
||-md5||Store an xmd5 property with the document||
If the **-md5** option is set then a property is stored with the document of the form
This can be used to implement an efficient "sync" command which only updates the destination if it has changed.
If the **-md5** option is set then a property is stored with the document of the form
This can be used to implement an efficient "sync" command which only updates the destination if it has changed.
Revision [1596]
Edited on 2010-11-24 05:01:52 by DavidLeeAdditions:
The put command uses the XCC [[http://developer.marklogic.com/pubs/4.1/javadoc/com/marklogic/xcc/Session.html#insertContent Session.insertContent]] API.
Deletions:
Revision [1595]
Edited on 2010-11-24 05:01:33 by DavidLeeAdditions:
||-buffer size||Set the transfer buffer size||
||-language lang||Set the language||
||-namespace namespace||Set the document namespace||
||-resolve,+resolve||Resolve (do not Resolve) Entities before storing the document||
||-quality quality||Set the document quality||
||-locale locale||Set the locale||
For detailed explanation of all the options, see the [[http://developer.marklogic.com/pubs/4.1/books/xcc.pdf MarkLogic XCC Developers Guide]] and the [[http://developer.marklogic.com/pubs/4.1/javadoc/com/marklogic/xcc/package-summary.html XCC Package Summary]].
The put command uses the XCC [[http://developer.marklogic.com/pubs/4.1/javadoc/com/marklogic/xcc/Session.html#insertContent(com.marklogic.xcc.Content[]) Session.insertContent]] API.
||-language lang||Set the language||
||-namespace namespace||Set the document namespace||
||-resolve,+resolve||Resolve (do not Resolve) Entities before storing the document||
||-quality quality||Set the document quality||
||-locale locale||Set the locale||
For detailed explanation of all the options, see the [[http://developer.marklogic.com/pubs/4.1/books/xcc.pdf MarkLogic XCC Developers Guide]] and the [[http://developer.marklogic.com/pubs/4.1/javadoc/com/marklogic/xcc/package-summary.html XCC Package Summary]].
The put command uses the XCC [[http://developer.marklogic.com/pubs/4.1/javadoc/com/marklogic/xcc/Session.html#insertContent(com.marklogic.xcc.Content[]) Session.insertContent]] API.
Revision [1594]
Edited on 2010-11-24 04:47:42 by DavidLeeAdditions:
- u|update Update
- r|read Read
- i|insert Insert
- x|execute Execute
- r|read Read
- i|insert Insert
- x|execute Execute
Deletions:
*r|read Read
*i|insert Insert
*x|execute Execute
Revision [1593]
Edited on 2010-11-24 04:47:21 by DavidLeeAdditions:
====Permissions====
Permissions can be specified with the -permission (or -perm) option. Permissions take the form of
*capability:role*
Capibility may be one of
*u|update Update
*r|read Read
*i|insert Insert
*x|execute Execute
Role is the role name
Example, add a document with read and update capability to the "user" role
ml:put -uri test.xml -perm read:user -perm u:user test.xml
Permissions can be specified with the -permission (or -perm) option. Permissions take the form of
*capability:role*
Capibility may be one of
*u|update Update
*r|read Read
*i|insert Insert
*x|execute Execute
Role is the role name
Example, add a document with read and update capability to the "user" role
ml:put -uri test.xml -perm read:user -perm u:user test.xml
Revision [1592]
Edited on 2010-11-24 04:44:08 by DavidLeeAdditions:
||-forest id [-forest id2 ...]||Put document(s) in the forest(s) specified by ID||
||-perm,-permission perm [-perm perm ...]||Apply the permission(s) to the document(s)||
||-repair none|full|default||Specify the repair mode||
||-perm,-permission perm [-perm perm ...]||Apply the permission(s) to the document(s)||
||-repair none|full|default||Specify the repair mode||
Revision [1591]
Edited on 2010-11-24 04:41:11 by DavidLeeAdditions:
||-collection name [-collection name2 ...]||Put document(s) in the named collection(s)||
Inserts a document into 2 collections
ml:put -uri test.xml -collection foo -collection bar test.xml
Inserts a document into 2 collections
ml:put -uri test.xml -collection foo -collection bar test.xml
Revision [1501]
Edited on 2010-09-02 17:00:39 by DavidLeeAdditions:
||-maxthreads n||Use at most n threads, default=1||
Revision [1454]
Edited on 2010-06-07 07:18:14 by DavidLeeAdditions:
||-x,-xml||Stores the document as "xml" content type||
||-d,-mkdirs||Create directories as needed. Only creates direct parent directories of documents||
||-d,-mkdirs||Create directories as needed. Only creates direct parent directories of documents||
Deletions:
Revision [1300]
Edited on 2010-03-10 10:53:08 by DavidLeeAdditions:
||-t,-text||Stores the document as "text" content type||
||-b,-binary||Stores the document as "binary" content type||
||-x,-xml|Stores the document as "xml" content type||
If neither -x, -t or -b is specified then the content type is determined by the server.
||-b,-binary||Stores the document as "binary" content type||
||-x,-xml|Stores the document as "xml" content type||
If neither -x, -t or -b is specified then the content type is determined by the server.
Deletions:
||-b,-binary||Put files in binary mode||
||-x,-xml||Put files in xml mode||
Revision [1299]
Edited on 2010-03-10 04:52:24 by DavidLeeAdditions:
||-c,-connect uri||Use the connection string instead of $MLCONNECT||
Deletions:
-c uri||Use the connection string instead of $MLCONNECT||
Revision [1298]
Edited on 2010-03-10 04:51:58 by DavidLeeAdditions:
put [options] [file | expression ] ...
||-t,-text||Put files in text mode||
||-b,-binary||Put files in binary mode||
||-x,-xml||Put files in xml mode||
||-t,-text||Put files in text mode||
||-b,-binary||Put files in binary mode||
||-x,-xml||Put files in xml mode||
Deletions:
Revision [1277]
Edited on 2010-03-01 14:07:06 by DavidLeeAdditions:
||-r,-recurse||Recursively put directories. If any argument is a directory then it is recursed||
||-m,-maxfiles num||Send files in batch at must num files in one transaction||
||-m,-maxfiles num||Send files in batch at must num files in one transaction||
Deletions:
-recurse||Recursively put directories. If any argument is a directory then it is recursed||
||-m num
-maxfiles num||Send files in batch at must num files in one transaction||
Revision [1276]
Edited on 2010-03-01 14:06:40 by DavidLeeAdditions:
-recurse||Recursively put directories. If any argument is a directory then it is recursed||
Deletions:
Revision [1135]
Edited on 2010-01-14 12:49:40 by DavidLeeAdditions:
ml:put test.xml
ml:put -uri myfile.xml test.xml
ml:put -uri test.xml <[ ]>
xquery -q 'myquery.xquery' -i input.xml | ml:put -uri test.xml
Copies an entire directory tree "modules" to the /modules/ directory on the ML server, using at most 100 files per batch
ml:put -baseuri / -r -m 100 modules
ml:put -uri myfile.xml test.xml
ml:put -uri test.xml <[
xquery -q 'myquery.xquery' -i input.xml | ml:put -uri test.xml
Copies an entire directory tree "modules" to the /modules/ directory on the ML server, using at most 100 files per batch
ml:put -baseuri / -r -m 100 modules
Deletions:
$ ml:put -uri myfile.xml test.xml
$ ml:put -uri test.xml <[
$ xquery -q 'myquery.xquery' -i input.xml | ml:put -uri test.xml
Revision [1134]
Edited on 2010-01-14 12:48:20 by DavidLeeAdditions:
||-r
-recurse||Recursively put directories. If any arguemnt is a directory then it is recursed||
-recurse||Recursively put directories. If any arguemnt is a directory then it is recursed||
Revision [1132]
Edited on 2010-01-07 14:08:44 by DavidLeeAdditions:
====Options====
||-connect uri
-c uri||Use the connection string instead of $MLCONNECT||
||-uri uri||Use the specified uri as the uri of the destination document,
Otherwise uses the base uri of the file or expression.||
||-baseuri base-uri||Use the specifed base uri instead of the base URI from the file or expression||
||-m num
-maxfiles num||Send files in batch at must num files in one transaction||
||expression | file||The file (or expression , variable, port or url) to put to the Mark Logic server.||
||-connect uri
-c uri||Use the connection string instead of $MLCONNECT||
||-uri uri||Use the specified uri as the uri of the destination document,
Otherwise uses the base uri of the file or expression.||
||-baseuri base-uri||Use the specifed base uri instead of the base URI from the file or expression||
||-m num
-maxfiles num||Send files in batch at must num files in one transaction||
||expression | file||The file (or expression , variable, port or url) to put to the Mark Logic server.||
Deletions:
-c uri Use the connection string instead of $MLCONNECT
-uri uri Use the specified uri as the uri of the destination document,
Otherwise uses the base uri of the file or expression.
expression
file The file (or expression , variable, port or url) to put to the Mark Logic server.
Revision [471]
Edited on 2009-04-10 16:32:12 by DavidLeeAdditions:
If file is omitted then stdin is used.
Puts the result of an xquery (via stdin) to the Mark Logic server using the uri "test.xml"
$ xquery -q 'myquery.xquery' -i input.xml | ml:put -uri test.xml
Puts the result of an xquery (via stdin) to the Mark Logic server using the uri "test.xml"
$ xquery -q 'myquery.xquery' -i input.xml | ml:put -uri test.xml