Class GrantMsPrivilege
java.lang.Object
org.pgcodekeeper.core.parsers.antlr.base.statement.ParserAbstract<MsDatabase>
org.pgcodekeeper.core.parsers.antlr.ms.statement.MsParserAbstract
org.pgcodekeeper.core.parsers.antlr.ms.statement.GrantMsPrivilege
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 Summary
ConstructorsConstructorDescriptionGrantMsPrivilege(TSQLParser.Rule_commonContext ctx, MsDatabase db, Map<PgStatement, StatementOverride> overrides, ISettings settings) Creates a parser for Microsoft SQL privilege statements with statement overrides.GrantMsPrivilege(TSQLParser.Rule_commonContext ctx, MsDatabase db, ISettings settings) Creates a parser for Microsoft SQL privilege statements without overrides. -
Method Summary
Modifier and TypeMethodDescriptionvoidParses a database object from the current context.Methods inherited from class org.pgcodekeeper.core.parsers.antlr.base.statement.ParserAbstract
fillOptionParams, fillOptionParams, getFullCtxText, getFullCtxText, getFullCtxText, getSafe, getSafe, parseArgMode, parseObject
-
Constructor Details
-
GrantMsPrivilege
Creates a parser for Microsoft SQL privilege statements without overrides.- Parameters:
ctx- the ANTLR parse tree context for the privilege statementdb- the Microsoft SQL database schema being processedsettings- 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 statementdb- the Microsoft SQL database schema being processedoverrides- map of statement overrides for privilege modificationssettings- parsing configuration settings
-
-
Method Details
-
parseObject
public void parseObject()Description copied from class:ParserAbstractParses a database object from the current context. Must be implemented by concrete subclasses to handle specific object types.- Specified by:
parseObjectin classParserAbstract<MsDatabase>
-