MarkLogic 10 Product Documentation
admin.databaseForeignMasterGetConnectForestsByName

admin.databaseForeignMasterGetConnectForestsByName(
   foreign-master as element(db.foreignMaster)
) as Boolean

Summary

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

Parameters
foreign-master The configuration element for the foreign master.

Example


  let admin = require("/MarkLogic/admin.xqy")
  let cfg = admin.getConfiguration()
  let fmaster = admin.databaseGetForeignMaster(cfg, xdmp.database("Documents"))
  admin.databaseForeignMasterGetConnectForestsByName(fmaster)
    
Powered by MarkLogic Server | Terms of Use | Privacy Policy