xdmp:database

xdmp:database(
   [$name as xs:string]
) as xs:unsignedLong

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