The eventtrig module defines two classes, EventTrigger and EventTriggerDict, derived from DbObject and DbObjectDict, respectively.
EventTrigger is derived from DbObject and represents an event trigger available from PostgreSQL 9.3 onwards.
An event trigger
Return SQL statements to CREATE the event trigger
Returns: | SQL statements |
---|
EventTriggerDict is derived from DbObjectDict. It is a dictionary that represents the collection of event triggers in a database.
The collection of event triggers in a database
Initalize the dictionary of triggers by converting the input map
Parameters: |
|
---|
Generate SQL to transform existing event triggers
Parameters: | intriggers – a YAML map defining the new event triggers |
---|---|
Returns: | list of SQL statements |
Compares the existing event trigger definitions, as fetched from the catalogs, to the input map and generates SQL statements to transform the event triggers accordingly.