Class PgGrantPrivilege


public final class PgGrantPrivilege extends PgParserAbstract
Parser for PostgreSQL GRANT and REVOKE privilege statements.

This class handles parsing of privilege management statements including object privileges (tables, sequences, functions), column privileges, schema privileges, and various privilege types like SELECT, INSERT, UPDATE, DELETE, USAGE, etc.

  • Constructor Details

    • PgGrantPrivilege

      public PgGrantPrivilege(SQLParser.Rule_commonContext ctx, PgDatabase db, ISettings settings)
      Constructs a new GrantPrivilege parser without statement overrides.
      Parameters:
      ctx - the rule common context (GRANT/REVOKE statement)
      db - the PostgreSQL database object
      settings - the ISettings object
    • PgGrantPrivilege

      public PgGrantPrivilege(SQLParser.Rule_commonContext ctx, PgDatabase db, Map<AbstractStatement,StatementOverride> overrides, ISettings settings)
      Constructs a new GrantPrivilege parser with optional statement overrides.
      Parameters:
      ctx - the rule common context (GRANT/REVOKE statement)
      db - the PostgreSQL database object
      overrides - optional map for statement overrides, may be null
      settings - 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>