MarkLogic 12 EA 1 Product Documentation
admin.databaseForeignReplicaGetConnectForestsByName

admin.databaseForeignReplicaGetConnectForestsByName(
   foreign-replica as element(db.foreignReplica)
) as Boolean

Summary

This function returns the connect-forests-by-name setting from the replica database configuration. This function must be executed on the master cluster.

Parameters
foreign-replica The configuration element for the foreign replicas.

Example


  let admin = require("/MarkLogic/admin.xqy")
  let cfg = admin.getConfiguration()
  let freplica = admin.databaseGetForeignReplicas(cfg, xdmp.database("Documents"))
  admin.databaseForeignReplicaGetConnectForestsByName(fn.head(freplica))
    
Powered by MarkLogic Server | Terms of Use | Privacy Policy