tieredstorage:database-create-sub-database( $dbid as xs:unsignedLong, $database-name as xs:string, [$kind as xs:string] ) as empty-sequence()
This function creates a database with the name
$database-name
and make the created database the sub database
of the database designated by $database-id
. The newly created database
inherits the configuration of the original database.
For details, see Creating a Super-database in the Administrator's Guide.
xquery version "1.0-ml"; import module namespace ts="http://marklogic.com/xdmp/tieredstorage" at "/MarkLogic/tieredstorage.xqy"; ts:database-create-sub-database(xdmp:database("Documents"),"subdb") => ()