MarkLogic 10 Product Documentation
trgr:trigger-set-description

trgr:trigger-set-description(
   $trigger-name as xs:string,
   $description as xs:string
) as empty-sequence()

Summary

Sets the description of the named trigger.

Parameters
trigger-name The trigger name.
description The new trigger description.

Usage Notes

This function must be run in the context of the database containing the trigger whose description is to be changed.

If the named trigger does not exist, the exception TRGR-TRIGGERDNE is raised.

Example

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

(: Run in the context of the database containing the trigger :)
trgr:trigger-set-description("currentName", "the new description")
  
Powered by MarkLogic Server | Terms of Use | Privacy Policy