Loading TOC...

MarkLogic 9 Product Documentation
pkg:get-database

pkg:get-database(
   $pkgname as xs:string,
   $database as xs:string
) as element(db:package-database)?

Summary

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

Returns the configuration of the named database from the named package.

Parameters
pkgname The name of the package from which to return the database configuration.
database The name of the database for which to return the configuration.

Example


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

pkg:get-database("mypackage", "Documents")

(: Returns the configuration of the 'Documents' database from the package
   named, 'mypackage'. :)
    

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