MarkLogic Server 11.0 Product Documentation
xdmp.schemaDatabase

xdmp.schemaDatabase(
   [database-id as (Number|String)]
) as (Number|String)

Summary

Returns the database ID of the schema database associated with the current database.

Parameters
database-id A database ID. Defaults to the current database.

Usage Notes

To run queries against the schema database, you can specify the xdmp:schema-database() function as the second parameter to xdmp:eval-in().

Example

xdmp.schemaDatabase();
=> 15467547981724877000
Powered by MarkLogic Server | Terms of Use | Privacy Policy