Class CreateSequence
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.CreateSequence
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
ConstructorsConstructorDescriptionCreateSequence(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.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
-
Constructor Details
-
CreateSequence
public CreateSequence(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
-