Loading TOC...

MarkLogic Server 11.0 Product Documentation
admin:database-foreign-replica-get-replication-enabled

admin:database-foreign-replica-get-replication-enabled(
   $foreign-replica as element(db:foreign-replica)
) as xs: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


  xquery version "1.0-ml";

  import module namespace admin = "http://marklogic.com/xdmp/admin"
      at "/MarkLogic/admin.xqy";

  let $cfg := admin:get-configuration()
  let $freplica := admin:database-get-foreign-replicas($cfg, xdmp:database("Documents"))

  return admin:database-foreign-replica-get-replication-enabled($freplica)

  (: Returns the enabled setting from the foreign replica database
     configuration element. :)
    

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