trgr.triggerDatabaseOnlineEvent( user-name as String ) as element(trgr.databaseOnlineEvent)
Returns the XML representation of a database coming online event, usable
as the event parameter of
trgr.createTrigger
.
Parameters | |
---|---|
user-name | The user used to execute the trigger module. |
const trgr = require('/MarkLogic/triggers'); trgr.triggerDatabaseOnlineEvent('database-admin'); // A trigger event suitable for use with trgr.createTrigger. // The triggering event occurs whenever a (unspecified) database // comes online. The trigger module associated with this event // executes as user 'database-admin'.
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.