Class PgCreateFunction
java.lang.Object
org.pgcodekeeper.core.database.base.parser.statement.ParserAbstract<PgDatabase>
org.pgcodekeeper.core.database.pg.parser.statement.PgParserAbstract
org.pgcodekeeper.core.database.pg.parser.statement.PgCreateFunction
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
ConstructorsConstructorDescriptionPgCreateFunction(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.database.pg.parser.statement.PgParserAbstract
fillOptionParams, fillOptionParams, getIdentifiers, getIdentifiers, getIdentifiers, getTypeName, parseArguments, parseOperatorSignature, parseSignature, unquoteQuotedStringMethods inherited from class org.pgcodekeeper.core.database.base.parser.statement.ParserAbstract
getFullCtxText, getFullCtxText, getFullCtxText, getSafe, getSafe, parseArgMode, parseObject
-
Field Details
-
DEFAULT
Default value constant used in configuration parameters.- See Also:
-
-
Constructor Details
-
PgCreateFunction
public PgCreateFunction(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>
-