MarkLogic 9 Product Documentation
trgr:trigger-database-online-event

trgr:trigger-database-online-event(
   $user-name as xs:string
) as element(trgr:database-online-event)

Summary

Returns the XML representation of a database coming online event, usable as the event parameter of trgr:create-trigger .

Parameters
user-name The user used to execute the trigger module.

Example

xquery version "1.0-ml";
import module namespace trgr="http://marklogic.com/xdmp/triggers"
   at "/MarkLogic/triggers.xqy";

trgr:trigger-database-online-event("database-admin")

  => A trigger event suitable for use with trgr:create-trigger.
     The triggering event occurs whenever a (unspecified) database
     comes online. The trigger module associated with this event
     executes as user "database-admin".
 
Powered by MarkLogic Server | Terms of Use | Privacy Policy