Skip to content

Instantly share code, notes, and snippets.

@ableasdale
Created December 16, 2019 09:53
Show Gist options
  • Save ableasdale/a4dacbb9ab21be90516f2726ff45981f to your computer and use it in GitHub Desktop.
Save ableasdale/a4dacbb9ab21be90516f2726ff45981f to your computer and use it in GitHub Desktop.
MarkLogic: output "FAIL" if Journaling is disabled on any database
xquery version "1.0-ml";
import module namespace admin = "http://marklogic.com/xdmp/admin" at "/MarkLogic/admin.xqy";
if(some $i in xdmp:databases() ! admin:database-get-journaling(admin:get-configuration(), .) satisfies ($i eq "off"))
then("FAIL")
else("PASS")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment