public final class CreateTrigger extends PgParserAbstract
Parser for PostgreSQL CREATE TRIGGER statements.

This class handles parsing of trigger definitions including trigger timing (BEFORE, AFTER, INSTEAD OF), events (INSERT, UPDATE, DELETE, TRUNCATE), trigger functions, referencing clauses, and constraint triggers.

  • Constructor Details

  • Method Details

    • parseObject

      public void parseObject()
      Description copied from class: ParserAbstract
      Parses a database object from the current context. Must be implemented by concrete subclasses to handle specific object types.
      Specified by:
      parseObject in class ParserAbstract<PgDatabase>
    • parseWhen

      public static void parseWhen(SQLParser.When_triggerContext whenCtx, PgTrigger trigger, AbstractDatabase db, String location)
      Parses the WHEN clause of a trigger definition.

      This method processes trigger conditions that determine when the trigger should fire based on the values in the affected row.

      Parameters:
      whenCtx - the WHEN trigger context, may be null
      trigger - the trigger object to configure
      db - the database for analysis launchers
      location - the source location for error reporting