Class AlterChTable
java.lang.Object
org.pgcodekeeper.core.parsers.antlr.base.statement.ParserAbstract<ChDatabase>
org.pgcodekeeper.core.parsers.antlr.ch.statement.ChParserAbstract
org.pgcodekeeper.core.parsers.antlr.ch.statement.AlterChTable
Parser for ClickHouse ALTER TABLE statements.
Handles table modifications including column additions, drops, updates, and constraint/index operations.
-
Constructor Summary
ConstructorsConstructorDescriptionAlterChTable(CHParser.Alter_table_stmtContext ctx, ChDatabase db, ISettings settings) Creates a parser for ClickHouse ALTER TABLE statements. -
Method Summary
Modifier and TypeMethodDescriptionvoidParses the ALTER TABLE statement and processes table modifications.Methods inherited from class org.pgcodekeeper.core.parsers.antlr.ch.statement.ChParserAbstract
getIdentifiersMethods inherited from class org.pgcodekeeper.core.parsers.antlr.base.statement.ParserAbstract
fillOptionParams, fillOptionParams, getFullCtxText, getFullCtxText, getFullCtxText, getSafe, getSafe, parseArgMode, parseObject
-
Constructor Details
-
AlterChTable
Creates a parser for ClickHouse ALTER TABLE statements.- Parameters:
ctx- the ANTLR parse tree context for the ALTER TABLE statementdb- the ClickHouse database schema being processedsettings- parsing configuration settings
-
-
Method Details
-
parseObject
public void parseObject()Parses the ALTER TABLE statement and processes table modifications. Handles dangerous operations like UPDATE, DROP COLUMN, and ALTER COLUMN with appropriate warnings. Processes ADD operations for constraints and indexes.- Specified by:
parseObjectin classParserAbstract<ChDatabase>
-