Loading TOC...

tieredstorage.databaseCreateSuperDatabase

tieredstorage.databaseCreateSuperDatabase(
   database-id as (Number|String),
   database-name as String
) as null

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

const ts = require('/MarkLogic/tieredstorage');

declareUpdate();
ts.databaseCreateSuperDatabase(xdmp.database('Documents'), 'superdb');
   

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