public final class CreateTable extends TableAbstract
Parser for PostgreSQL CREATE TABLE statements.

This class handles parsing of table definitions including regular tables, partitioned tables, typed tables, and Greenplum-specific table types. It processes columns, constraints, inheritance, storage parameters, and table-specific options like tablespace, access method, and OIDs.

  • Constructor Details

    • CreateTable

      public CreateTable(SQLParser.Create_table_statementContext ctx, PgDatabase db, String tablespace, String accessMethod, String oids, org.antlr.v4.runtime.CommonTokenStream stream, ISettings settings)
      Constructs a new CreateTable parser.
      Parameters:
      ctx - the CREATE TABLE statement context
      db - the PostgreSQL database object
      tablespace - the default tablespace name
      accessMethod - the default access method
      oids - the default OIDs setting
      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>