Class CreateView
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.CreateView
Parser for PostgreSQL CREATE VIEW and CREATE MATERIALIZED VIEW statements.
This class handles parsing of view definitions including regular views, materialized views, recursive views, and their associated properties such as column names, storage parameters, tablespace, and check options.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringPattern for transforming recursive view definitions into standard form. -
Constructor Summary
ConstructorsConstructorDescriptionCreateView(SQLParser.Create_view_statementContext context, PgDatabase db, String tablespace, String accessMethod, org.antlr.v4.runtime.CommonTokenStream stream, ISettings settings) Constructs a new CreateView 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
-
RECURSIVE_PATTERN
Pattern for transforming recursive view definitions into standard form.- See Also:
-
-
Constructor Details
-
CreateView
public CreateView(SQLParser.Create_view_statementContext context, PgDatabase db, String tablespace, String accessMethod, org.antlr.v4.runtime.CommonTokenStream stream, ISettings settings) Constructs a new CreateView parser.- Parameters:
context- the CREATE VIEW statement contextdb- the PostgreSQL database objecttablespace- the default tablespace nameaccessMethod- the default access methodstream- the token stream for parsingsettings- 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>
-