Class CreateChFunction
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.CreateChFunction
Parser for ClickHouse CREATE FUNCTION statements.
Handles function creation including lambda expressions, function arguments, and body parsing.
-
Constructor Summary
ConstructorsConstructorDescriptionCreateChFunction(CHParser.Create_function_stmtContext ctx, ChDatabase db, ISettings settings) Creates a parser for ClickHouse CREATE FUNCTION statements. -
Method Summary
Modifier and TypeMethodDescriptionvoidParses a database object from the current context.voidparseObject(ChFunction function) Parses function details including body expression and arguments.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
-
CreateChFunction
public CreateChFunction(CHParser.Create_function_stmtContext ctx, ChDatabase db, ISettings settings) Creates a parser for ClickHouse CREATE FUNCTION statements.- Parameters:
ctx- the ANTLR parse tree context for the CREATE FUNCTION 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 function details including body expression and arguments. Sets up expression analysis launcher for dependency tracking if enabled.- Parameters:
function- the function object to populate with parsed information
-