flexrep:pull-set-name( $pull as element(flexrep:pull), $name as xs:string ) as element(flexrep:pull)
This function sets the name of the specified pull configuration.
Parameters | |
---|---|
pull |
The pull replication configuration returned by the
flexrep:pull-get
function.
|
name | The name to be set for the pull configuration. |
xquery version "1.0-ml"; import module namespace flexrep = "http://marklogic.com/xdmp/flexible-replication" at "/MarkLogic/flexrep.xqy"; let $pull-config := flexrep:pull-get(9535475951259984368, fn:true()) let $pull-config := flexrep:pull-set-name($pull-config, "MasterRep") return flexrep:pull-insert($pull-config) (: Sets the name of the specified pull configuration to "MasterRep." :)