public final class DropStatement extends PgParserAbstract
Parser for PostgreSQL DROP statements.

This class handles parsing of various DROP statements including DROP TABLE, DROP FUNCTION, DROP PROCEDURE, DROP AGGREGATE, DROP TRIGGER, DROP RULE, DROP POLICY, DROP OPERATOR, DROP CAST, DROP USER MAPPING, and other database object types.

  • Constructor Details

    • DropStatement

      public DropStatement(SQLParser.Schema_dropContext ctx, PgDatabase db, ISettings settings)
      Constructs a new DropStatement parser.
      Parameters:
      ctx - the schema drop context
      db - the PostgreSQL database object
      settings - the ISettings object
  • 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>
    • dropFunction

      public void dropFunction(SQLParser.Drop_function_statementContext ctx)
      Processes a DROP FUNCTION, DROP PROCEDURE, or DROP AGGREGATE statement.
      Parameters:
      ctx - the drop function statement context