MarkLogic 12 EA 1 Product Documentation
admin.databaseForeignMasterGetDatabaseId

admin.databaseForeignMasterGetDatabaseId(
   foreign-master as element(db.foreignMaster)
) as (Number|String)

Summary

This function returns the id of the foreign master database. This function must be executed on the replica cluster.

Parameters
foreign-master The foreign master configuration.

Example


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