Skip to content

Instantly share code, notes, and snippets.

@ryanjdew
Created July 19, 2012 13:08
Show Gist options
  • Select an option

  • Save ryanjdew/3143787 to your computer and use it in GitHub Desktop.

Select an option

Save ryanjdew/3143787 to your computer and use it in GitHub Desktop.
Static Checking XQuery Main Modules
for $main-module in xdmp:eval("cts:uri-match('*.xqm')",
<options xmlns="xdmp:eval">
<database>{xdmp:modules-database()}</database>
</options>)
return xdmp:invoke($main-module, (),
<options xmlns="xdmp:eval">
<static-check>true</static-check>
</options>)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment