TriggerDef <T>
Index
Properties
optionalbody
SQL body of the trigger. Can be a string, Raw query, or callback receiving column name mappings.
events
Which DML events activate the trigger.
optionalexpression
Raw DDL escape hatch — full CREATE TRIGGER statement. Mutually exclusive with body.
optionalforEach
Whether the trigger fires once per row or per statement. Defaults to 'row'.
optionalname
Trigger name. Auto-generated if omitted.
timing
When the trigger fires relative to the event.
optionalwhen
Optional SQL WHEN condition for the trigger.
Definition of a database trigger on a table.