MarkLogic 12 EA 1 Product Documentation
xdmp.database

xdmp.database(
   [name as String]
) as (Number|String)

Summary

Returns the ID of the database named in the parameter. Returns the ID of the current database if no parameter is specified. Throws XDMP-NOSUCHDB if no database exists for the specified name.

Parameters
name The name of the database. The default value is the name of the current database.

Example

xdmp.database("myDB");
=> 74495681647284736476
Powered by MarkLogic Server | Terms of Use | Privacy Policy