Class PgCreateTable
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.PgTableAbstract
org.pgcodekeeper.core.database.pg.parser.statement.PgCreateTable
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 Summary
ConstructorsConstructorDescriptionPgCreateTable(SQLParser.Create_table_statementContext ctx, PgDatabase db, String tablespace, String accessMethod, String oids, org.antlr.v4.runtime.CommonTokenStream stream, ISettings settings, Queue<AntlrTask<?>> antlrTasks) Constructs a new CreateTable 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
-
Constructor Details
-
PgCreateTable
public PgCreateTable(SQLParser.Create_table_statementContext ctx, PgDatabase db, String tablespace, String accessMethod, String oids, org.antlr.v4.runtime.CommonTokenStream stream, ISettings settings, Queue<AntlrTask<?>> antlrTasks) Constructs a new CreateTable parser.- Parameters:
ctx- the CREATE TABLE statement contextdb- the PostgreSQL database objecttablespace- the default tablespace nameaccessMethod- the default access methodoids- the default OIDs settingstream- 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>
-