
MarkLogic 9 Product Documentation
pkg:get-database-listpkg:get-database-list(
$pkgname as xs:string,
[$start as xs:unsignedLong],
[$pageLength as xs:unsignedLong]
) as element(list:database-list)
Summary
[DEPRECATED: use cma:generate-config and
cma:apply-config instead.]
Returns the names of the databases that have configurations
in the named package.
| Parameters |
| pkgname |
The name of the package that contains the database configurations.
|
| start |
The start position of the list of databases. For example, if there are a total of
50 databases and the pageLength is set to 5, then start=6
returns a list of 5 databases, starting with the sixth database (databases 6-10).
|
| pageLength |
The number of databases to return in each list.
|
Example
xquery version "1.0-ml";
import module namespace pkg = "http://marklogic.com/manage/package"
at "/MarkLogic/manage/package/package.xqy";
pkg:get-database-list("mypackage")
(: Returns the names of the databases that have configurations
in the package named, 'mypackage'.
Copyright © 2025 MarkLogic Corporation. MARKLOGIC is a
registered trademark of MarkLogic Corporation.