|
From: Adam R. <ad...@ex...> - 2021-08-08 19:42:55
|
Just to check do you want a sequence, or just a unique Id?
On Sun, 8 Aug 2021, 19:44 Gary via Exist-open, <
exi...@li...> wrote:
> 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
> _______________________________________________
> Exist-open mailing list
> Exi...@li...
> https://lists.sourceforge.net/lists/listinfo/exist-open
>
|