MarkLogic Server 11.0 Product Documentation
flexrep:pull-set-name

flexrep:pull-set-name(
   $pull as element(flexrep:pull),
   $name as xs:string
) as element(flexrep:pull)

Summary

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.

Example

  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." :)
     
Powered by MarkLogic Server | Terms of Use | Privacy Policy