Skip to content

Instantly share code, notes, and snippets.

@apb2006
Created August 11, 2015 20:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save apb2006/33678508fea68148e7cc to your computer and use it in GitHub Desktop.
Save apb2006/33678508fea68148e7cc to your computer and use it in GitHub Desktop.
updating
import module namespace eval = "quodatum.eval" at "../../../app-doc/src/doc/lib/eval.xqm";
let $s:="
declare variable $state as element(state):=db:open('doc-doc','/state.xml')/state;
(replace value of node $state/hits with 1+$state/hits,
1+$state/hits)
"
let $b:= eval:update($s,"",map{})
return ($b,$b?result+100)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment