Running BaseX commands from xquery esp REPO LIST
Tuesday, 10 January 2012 · 2 messages · last reply 19 Jan 2012
AB
Andy Bunce10 Jan 2012 14:11 #
Hi,
I using the EXPath repository and it is going well. It would be useful to me to manage the repository from Xquery, at least to get the REPO LIST result.
I see Exist DB has http://demo.exist-db.org/repo/repo.xml#d5510e705 Are there any plans to add something similar to BaseX
One quick, if a bit hacky, way to enable this to be built would be a new util:command("command string")
e.g.
util:command("get timeout")
<result>TIMEOUT: 0</result>/Andy
RS
Rositsa Shadura19 Jan 2012 15:48 #
Hi Andy,
in the latest snapshot you can find three functions for managing EXPath packages: pkg:install(), pkg:delete() and pkg:list(). You can read the corresponding documentation here:
http://docs.basex.org/wiki/Packaging_Module.
Regards,
Rositsa
Quoted text · Andy Bunce · 18 lines
On Tue, 10 Jan 2012 14:11:14 +0100, Andy Bunce <bunce.andy at gmail.com> wrote: > Hi, > I using the EXPath repository and it is going well. It would be useful to > me to manage the repository from Xquery, at least to get the REPO LIST > result. > > I see Exist DB has http://demo.exist-db.org/repo/repo.xml#d5510e705 > Are there any plans to add something similar to BaseX > > One quick, if a bit hacky, way to enable this to be built would be a new > util:command("command string") > e.g. > util:command("get timeout") > > <result>TIMEOUT: 0</result> > > /Andy
Written for BaseX 7.0. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery