Loading TOC...

MarkLogic Server 11.0 Product Documentation
xdmp:database-assignment-policy

xdmp:database-assignment-policy(
   $database-id as xs:unsignedLong
) as element(db:assignment-policy)

Summary

This function returns the assignment policy for the specified database.

Parameters
$database-id The ID of the database.

Example

xquery version "1.0-ml";

xdmp:database-assignment-policy(xdmp:database())
(: returns the assignment policy for the database :)

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