MarkLogic Server 11.0 Product Documentation
xdmp:forest-databases

xdmp:forest-databases(
   $forest as xs:unsignedLong
) as xs:unsignedLong?

Summary

Returns the database ID corresponding to the database to which the specified forest belongs, or empty sequence if the forest belongs to no database.

Parameters
forest A forest ID.

Example

xdmp:forest-databases(xdmp:forest("Documents"))
=> 2032458498523149048
Powered by MarkLogic Server | Terms of Use | Privacy Policy