Determines the differences between the configuration in the package and the
current configuration of the MarkLogic server on which the function is executed.
Parameters
pkgname
The name of the package containing the configuration to compare with
the MarkLogic server.
only-diffs
By default, all of the configuration settings in the package are returned,
along with what settings are to be deleted and the settings that are to replace them.
Specify fn:true() to return only those settings that are to be changed
when the package is installed.
Example
xquery version "1.0-ml";
import module namespace pkg = "http://marklogic.com/manage/package"
at "/MarkLogic/manage/package/package.xqy";
pkg:differences("mypackage", fn:true())
(: Compare the configuration in the 'mypackage' package against the current
configuration of your MarkLogic server and return only those settings that
differ between the packaged and current configurations. :)
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.