Class ChCreatePolicy
java.lang.Object
org.pgcodekeeper.core.database.base.parser.statement.ParserAbstract<ChDatabase>
org.pgcodekeeper.core.database.ch.parser.statement.ChParserAbstract
org.pgcodekeeper.core.database.ch.parser.statement.ChCreatePolicy
Parser for ClickHouse CREATE POLICY statements.
Handles row-level security policy creation with support for multiple policies
on multiple tables, including policy actions and role assignments.
-
Constructor Summary
ConstructorsConstructorDescriptionChCreatePolicy(CHParser.Create_policy_stmtContext ctx, ChDatabase db, ISettings settings) Creates a parser for ClickHouse CREATE POLICY statements. -
Method Summary
Modifier and TypeMethodDescriptionvoidParses a database object from the current context.Methods inherited from class org.pgcodekeeper.core.database.ch.parser.statement.ChParserAbstract
getIdentifiersMethods inherited from class org.pgcodekeeper.core.database.base.parser.statement.ParserAbstract
getFullCtxText, getFullCtxText, getFullCtxText, getSafe, getSafe, parseArgMode, parseObject
-
Constructor Details
-
ChCreatePolicy
Creates a parser for ClickHouse CREATE POLICY statements.- Parameters:
ctx- the ANTLR parse tree context for the CREATE POLICY statementdb- the ClickHouse database schema being processedsettings- 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<ChDatabase>
-