Loading TOC...

MarkLogic 12 EA 2 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

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.