Class GrantChPrivilege


public final class GrantChPrivilege extends ChParserAbstract
Parser for ClickHouse GRANT and REVOKE privilege statements. Handles privilege assignment and revocation for users and roles on database objects, including support for column-level privileges and grant options.
  • Constructor Details

    • GrantChPrivilege

      public GrantChPrivilege(CHParser.Privilegy_stmtContext ctx, ChDatabase db, Map<PgStatement,StatementOverride> overrides, ISettings settings)
      Creates a parser for ClickHouse GRANT/REVOKE privilege statements.
      Parameters:
      ctx - the ANTLR parse tree context for the GRANT/REVOKE statement
      db - the ClickHouse database schema being processed
      overrides - map of statement overrides for privilege modifications
      settings - parsing configuration settings
  • 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<ChDatabase>