[MarkLogic Dev General] cqsh question
aeb at qnot.org
Fri Dec 15 10:23:15 PST 2006
You can use xdmp:document-load() with cqsh but the file would have to be
located on the server. The only option currently supported in cqsh for
loading local files is passing in a uri.
cqsh --load -n '/my/doc/uri' /tmp/localfile.xml
or you can give a uri prefix for loading multiple files:
cqsh --load -i '/docs/' /tmp/*.xml
cqsh is still using the old XDBC libraries under the covers. I'm hoping to
update cqsh to use XCC which has a much better interface for document
loading. What options would you like to see added to cqsh load?
> Using the cqsh tool, is it possible to load a local file using
> xdmp:document-load() within a query, or is the only loading
> functionality that supplied by the "load" command or
> "cqsh --load file"?
> The built-in cqsh load command doesn't provide for passing options in
> the way that xdmp:document-load() does.
> David Sewell, Editorial and Technical Manager
> ROTUNDA, The University of Virginia Press
> PO Box 400318, Charlottesville, VA 22904-4318 USA
> Courier: 310 Old Ivy Way, Suite 302, Charlottesville VA 22903
> Email: dsewell at virginia.edu Tel: +1 434 924 9973
> Web: http://rotunda.upress.virginia.edu/
> General mailing list
> General at developer.marklogic.com
More information about the General