Loading TOC...

pkg:database-configuration

pkg:database-configuration(
   $database as xs:string
) as element(db:package-database)

Summary

[DEPRECATED: use cma:generate-config and cma:apply-config instead.]

Returns the configuration (in XML) of the named database.

Parameters
database The name of the database.

Example


xquery version "1.0-ml"; 
 
import module namespace pkg = "http://marklogic.com/manage/package" 
      at "/MarkLogic/manage/package/package.xqy";

pkg:database-configuration("Documents")

(: Returns the configuration of the 'Documents' database. :)
    

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