public final class PgCreateView extends PgParserAbstract
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 Details

    • RECURSIVE_PATTERN

      public static final String RECURSIVE_PATTERN
      Pattern for transforming recursive view definitions into standard form.
      See Also:
  • Constructor Details

    • PgCreateView

      public PgCreateView(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 context
      db - the PostgreSQL database object
      tablespace - the default tablespace name
      accessMethod - the default access method
      stream - the token stream for parsing
      settings - the ISettings object
  • Method Details

    • parseObject

      public void parseObject()
      Description copied from class: ParserAbstract
      Parses a database object from the current context. Must be implemented by concrete subclasses to handle specific object types.
      Specified by:
      parseObject in class ParserAbstract<PgDatabase>