Class CreateFunction
java.lang.Object
org.pgcodekeeper.core.parsers.antlr.base.statement.ParserAbstract<PgDatabase>
org.pgcodekeeper.core.parsers.antlr.pg.statement.PgParserAbstract
org.pgcodekeeper.core.parsers.antlr.pg.statement.CreateFunction
Parser for PostgreSQL CREATE FUNCTION and CREATE PROCEDURE statements.
This class handles parsing of function and procedure definitions, including their parameters, return types, body, language, and various attributes such as volatility, security, parallel execution, and configuration parameters.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreateFunction(SQLParser.Create_function_statementContext ctx, PgDatabase db, List<Object> errors, Queue<AntlrTask<?>> antlrTasks, ISettings settings) Constructs a new CreateFunction parser. -
Method Summary
Modifier and TypeMethodDescriptionvoidParses a database object from the current context.Methods inherited from class org.pgcodekeeper.core.parsers.antlr.pg.statement.PgParserAbstract
getIdentifiers, getIdentifiers, getIdentifiers, getTypeName, parseArguments, parseOperatorSignature, parseSignature, unquoteQuotedStringMethods inherited from class org.pgcodekeeper.core.parsers.antlr.base.statement.ParserAbstract
fillOptionParams, fillOptionParams, getFullCtxText, getFullCtxText, getFullCtxText, getSafe, getSafe, parseArgMode, parseObject
-
Field Details
-
DEFAULT
Default value constant used in configuration parameters.- See Also:
-
-
Constructor Details
-
CreateFunction
public CreateFunction(SQLParser.Create_function_statementContext ctx, PgDatabase db, List<Object> errors, Queue<AntlrTask<?>> antlrTasks, ISettings settings) Constructs a new CreateFunction parser.- Parameters:
ctx- the CREATE FUNCTION statement contextdb- the PostgreSQL database objecterrors- list to collect parsing errorsantlrTasks- queue for scheduling ANTLR analysis taskssettings- the ISettings object
-
-
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<PgDatabase>
-