Class PgCreateSequence
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.PgCreateSequence
Parser for PostgreSQL CREATE SEQUENCE statements.
This class handles parsing of sequence definitions including data type, increment, min/max values, start value, cache, cycle options, and ownership relationships.
-
Constructor Summary
ConstructorsConstructorDescriptionPgCreateSequence(SQLParser.Create_sequence_statementContext ctx, PgDatabase db, ISettings settings) Constructs a new CreateSequence parser. -
Method Summary
Modifier and TypeMethodDescriptionstatic voidfillSequence(PgSequence sequence, List<SQLParser.Sequence_bodyContext> list) Fills sequence properties from a list of sequence body contexts.voidParses 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
-
PgCreateSequence
public PgCreateSequence(SQLParser.Create_sequence_statementContext ctx, PgDatabase db, ISettings settings) Constructs a new CreateSequence parser.- Parameters:
ctx- the CREATE SEQUENCE statement contextdb- the PostgreSQL database objectsettings- 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>
-
fillSequence
Fills sequence properties from a list of sequence body contexts.This method processes sequence options like data type, cache, increment, min/max values, start value, cycle behavior, and ownership.
- Parameters:
sequence- the sequence object to populatelist- the list of sequence body contexts containing the options
-