xdmp:database( [$name as xs:string] ) as xs:unsignedLong
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. |
xdmp:database("myDB") => 74495681647284736476