tieredstorage.databaseCreateSubDatabase( dbid as (Number|String), database-name as String, [kind as String] ) as null
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.
const ts = require('/MarkLogic/tieredstorage'); declareUpdate(); ts.databaseCreateSubDatabase(xdmp.database('Documents'), 'subdb');