Re: [basex-talk] Invoking database update from RESTXQ

2015-03-03 Thread Lukas Kircher
Hi Lars, are you annotating your RESTXQ endpoints with %updating? F.i.: declare %rest:path('/somepath') *%updating* function _:update() { updates ... }; Cheers, Lukas On Tue, Mar 3, 2015 at 10:36 AM, Lars Johnsen yoon...@gmail.com wrote: Hello all I was wondering how to perform

[basex-talk] Invoking database update from RESTXQ

2015-03-03 Thread Lars Johnsen
Hello all I was wondering how to perform database updating, like db:add, in RESTXQ, since the adding and updating functions throw errors when invoked inside functions defined in RESTXQ-modules. Have been trying to use the forward mechanism, transferring the data to a script without functions,

Re: [basex-talk] Invoking database update from RESTXQ

2015-03-03 Thread Maximilian Gärber
Hi, it works for me when the XQuery module resides in the repo folder, and the RESTXQ function only calls it inside restxq module import module namespace coll = http://foo.org/collections;; coll:new(some-db) inside repo module declare updating function _:new($name as xs:string) {