MarkLogic 9 Product Documentation
flexrep:pull-get-domain-id

flexrep:pull-get-domain-id(
   $pull as element(flexrep:pull)
) as xs:unsignedLong

Summary

This function returns the ID of the domain associated with the specified pull configuration.

Parameters
pull The pull configuration.

Example

  (: Execute against a Replica database. :)  
  xquery version "1.0-ml"; 

  import module namespace flexrep = "http://marklogic.com/xdmp/flexible-replication" 
      at "/MarkLogic/flexrep.xqy";

  for $pull-config in flexrep:pull-get-all() 

  return flexrep:pull-get-domain-id($pull-config)

  (: Returns the domain IDs associated with each pull configuration. :)
     
Powered by MarkLogic Server | Terms of Use | Privacy Policy