|
From: Gary <ga...@ra...> - 2021-08-08 17:43:41
|
Hi Guys,
Is there an eXistDB sequence generator function I can use inside an XQuery?
I would like to create documents from an XQuery along these lines.
let $new-file-path := xmldb:store("/db/docs", concat(xmldb:sequence-generator(), '.xml'), $doc)
I am looking for a way to safely set, reset and persist counters and create a series of unique document names from each time the query is run e.g. 1.xml, 2.xml 3.xml etc.
Kind Regards
Gary
Solution Architect
https://www.rapport.net
https://assistive.care
https://q.rip
Rapport Network CIC
Registered in Scotland: SC458540
|