Class GrantMsPrivilege


public final class GrantMsPrivilege extends MsParserAbstract
Parser for Microsoft SQL GRANT, REVOKE, and DENY privilege statements. Handles privilege assignment, revocation, and denial for users and roles on database objects, including support for column-level privileges and grant options.
  • Constructor Details

    • GrantMsPrivilege

      public GrantMsPrivilege(TSQLParser.Rule_commonContext ctx, MsDatabase db, ISettings settings)
      Creates a parser for Microsoft SQL privilege statements without overrides.
      Parameters:
      ctx - the ANTLR parse tree context for the privilege statement
      db - the Microsoft SQL database schema being processed
      settings - parsing configuration settings
    • GrantMsPrivilege

      public GrantMsPrivilege(TSQLParser.Rule_commonContext ctx, MsDatabase db, Map<PgStatement,StatementOverride> overrides, ISettings settings)
      Creates a parser for Microsoft SQL privilege statements with statement overrides.
      Parameters:
      ctx - the ANTLR parse tree context for the privilege statement
      db - the Microsoft SQL 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<MsDatabase>