A module for persistent counters.
counter:create($counter-name as item()) as xs:long?
Create a unique counter named $counter-name.
$counter-name | Name of the counter. |
counter:create($counter-name as item(), $init-value as xs:long) as xs:long?
Create a unique counter named $counter-name and initialize it with value $init-value.
$counter-name | Name of the counter. |
$init-value | The initial value of the counter. |
counter:destroy($counter-name as item()) as xs:boolean?
Destroy the counter named $counter-name.
$counter-name | Name of the counter. |
counter:next-value($counter-name as item()) as xs:long?
Increment the counter $counter-name and return its new value.
$counter-name | Name of the counter. |