Home > extract-pg-schema > Trigger
Trigger interface
Trigger on a table or view.
Signature:
typescript
export interface Trigger
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
"BEFORE" | "AFTER" | "INSTEAD OF" | Timing of the trigger (BEFORE, AFTER, INSTEAD OF). | ||
string | null | Comment on the trigger, if any. | ||
string | null | WHEN condition for the trigger, if any. | ||
boolean | Whether the trigger is enabled. | ||
("INSERT" | "UPDATE" | "DELETE" | "TRUNCATE")[] | Events that fire the trigger (INSERT, UPDATE, DELETE, TRUNCATE). | ||
string[] | Arguments passed to the function. | ||
string | Name of the function called by the trigger. | ||
string | Schema of the function called by the trigger. | ||
InformationSchemaTrigger | Information schema value for the trigger. | ||
string | Name of the trigger. | ||
"ROW" | "STATEMENT" | Orientation: ROW or STATEMENT. |