Class CreateChTable
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.CreateChTable
Parser for ClickHouse CREATE TABLE statements.
Handles table creation including columns, engines, constraints, indexes, and projections.
Automatically selects appropriate table type (ChTable or ChTableLog) based on engine type.
-
Constructor Summary
ConstructorsConstructorDescriptionCreateChTable(CHParser.Create_table_stmtContext ctx, ChDatabase db, ISettings settings) Creates a parser for ClickHouse CREATE TABLE statements. -
Method Summary
Modifier and TypeMethodDescriptionvoidParses a database object from the current context.voidparseObject(ChTable table) Parses table details including engine, elements, and comments.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
-
CreateChTable
Creates a parser for ClickHouse CREATE TABLE statements.- Parameters:
ctx- the ANTLR parse tree context for the CREATE TABLE 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>
-
parseObject
Parses table details including engine, elements, and comments. Processes all table elements such as columns, constraints, indexes, and projections.- Parameters:
table- the table object to populate with parsed information
-