
pkg:put-database( $pkgname as xs:string, $dbxml as element(db:package-database) ) as empty-sequence()
[DEPRECATED: use cma:generate-config and
cma:apply-config instead.]
| Parameters | |
|---|---|
| pkgname | The name of the package to which to add the database configuration. |
| dbxml |
The database configuration (in XML), such as that returned from the
pkg:database-configuration function.
|
xquery version "1.0-ml";
import module namespace pkg = "http://marklogic.com/manage/package"
at "/MarkLogic/manage/package/package.xqy";
pkg:put-database("mypackage", pkg:database-configuration("Documents"))
(: Add the configuration of the 'Documents' database to the package
named, 'mypackage'. :)
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.