Trigger!
Tuesday, 5 April 2011 · 2 messages · last reply 6 Apr 2011
TN
Truong An Nguyen5 Apr 2011 16:50 #
Hi,
Does Basex have trigger? If not, can you please show me how to recognize which documents are changed after the execution of an xquery update? Thanks.
Cheers,
An
AW
Andreas Weiler6 Apr 2011 09:32 #
Hi An,
the triggers feature is on our todo list, but not implemented yet. Suggestions are welcome. As the update functions don't return any results, you could instead write the modified documents into a file, like in this example using the xmark.xml file:
for $n in //regions
where file:write("/Desktop/test", base-uri(//regions))
return insert node <test/> into $nSo you get a list of all modified documents in the database.
-- Andreas
Quoted text · Truong An Nguyen · 13 lines
Am 05.04.2011 um 16:50 schrieb Truong An Nguyen: > Hi, > > Does Basex have trigger? If not, can you please show me how to > recognize which documents are changed after the execution of an xquery > update? Thanks. > > Cheers, > An > _______________________________________________ > BaseX-Talk mailing list > BaseX-Talk at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
Written for BaseX 6.6. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery