MarkLogic 9 Product Documentation
tieredstorage:database-create-super-database

tieredstorage:database-create-super-database(
   $database-id as xs:unsignedLong,
   $database-name as xs:string
) as empty-sequence()

Summary

This function creates a database with the name $database-name and make the created database the super 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.

Parameters
database-id ID of the database as sub-database of the one to be created.
database-name Name of the new database.

Example

xquery version "1.0-ml";
import module namespace ts="http://marklogic.com/xdmp/tieredstorage" 
          at "/MarkLogic/tieredstorage.xqy";

ts:database-create-super-database(xdmp:database("Documents"),"superdb")
=>
()
  
Powered by MarkLogic Server | Terms of Use | Privacy Policy