trgr:trigger-disable( $trigger-name as xs:string ) as empty-sequence()
Disables the named trigger.
Parameters | |
---|---|
trigger-name | The trigger name. |
This function must be run in the context of the database containing
the trigger to be disabled. If no trigger named $trigger-name
exists, the exception TRGR-TRIGGERDNE
is raised.
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-disable("the_trigger_name")