admin:database-super-databases( $config as element(configuration), $database-id as xs:unsignedLong ) as element(db:database-reference)*
This function returns a database-reference element representing where the specified database serves as a sub-database. It only includes information about where the database serves as a sub-database on the current cluster; if you want to find where it serves as a sub-database on another cluster, you will have to make the call from the other cluster.
Parameters | |
---|---|
config | A configuration specification, typically as returned from one of the Admin module functions. |
database-id | The ID of the sub-database. |
xquery version "1.0-ml"; import module namespace admin = "http://marklogic.com/xdmp/admin" at "/MarkLogic/admin.xqy"; let $config := admin:get-configuration() let $databaseid := xdmp:database("Documents") return admin:database-super-databases($config, $databaseid) (: returns the db:database-references element, if there are any configured :)