Skip to content

Instantly share code, notes, and snippets.

@ableasdale
Created July 26, 2016 18:03
Show Gist options
  • Save ableasdale/ce624b9985160ccb7303d8a016a76961 to your computer and use it in GitHub Desktop.
Save ableasdale/ce624b9985160ccb7303d8a016a76961 to your computer and use it in GitHub Desktop.
MarkLogic: Forest statuses for all forests in a given database (with an XPath to the Forest name)
xquery version "1.0-ml";
declare namespace fs = "http://marklogic.com/xdmp/status/forest";
xdmp:forest-status(xdmp:database-forests(xdmp:database("test")))/fs:forest-name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment