Loading TOC...

admin.databaseForeignReplicaGetReplicationEnabled

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

Summary

This function returns the enabled flag from the replica database configuration.

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

Example


  let admin = require("/MarkLogic/admin.xqy")
  let cfg = admin.getConfiguration()
  let freplica = admin.databaseGetForeignReplicas(cfg, xdmp.database("Documents"))
  admin.databaseForeignReplicaGetReplicationEnabled(fn.head(freplica))
    

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.