I took my option (1) and now have my commit hooks ensure that the database
exists, which was easy enough to do (just needed to add an addition CHECK
command to my existing BaseX command sequence). It just means that the
RESTXQ code itself can't ensure that the metadata database is up to date,
at
Thanks for the background information.
But with XQuery's constraint on when you can do updates that's not
possible, at least not in a naïve way--if you have a function that needs
to return a result it cannot also do updating (meaning it can't call any
updating functions).
I understand the
Hello Eliot,
You can add the documents directly using the db:create() function, thus
being able to create and initialize the database. If you have multiple
documents to add it can be done like the following example:
db:create('new-database', (some-data/, more-data/),
(somedata.xml,
Hi Eliot,
additionally to Dirk's hint, I'd like to point you to our DBA RESTXQ
code. It contains many examples on how to perform updates exclusively
with the BaseX extensions of XQuery.
Best,
Christian
On Sat, Jul 11, 2015 at 7:38 PM, Eliot Kimber ekim...@contrext.com wrote:
In my link
4 matches
Mail list logo