classSequenceFlag
final class SequenceFlag
implements SequenceOption
uses Snapshot
Public API: explicitly declared with
@visibility public.A sequence option without an operand: CYCLE, NO CYCLE, NO MINVALUE, NO MAXVALUE, RESTART, LOGGED or UNLOGGED.
Source: https://www.postgresql.org/docs/17/sql-createsequence.html, https://www.postgresql.org/docs/17/sql-altersequence.html.
$create = (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze('CREATE SEQUENCE s NO CYCLE');
$create->statement->options[0]->kind // => \SqlSemantics\Platform\PostgreSql\Statement\Table\Sequence\SequenceFlagKind::NoCycleProperties§
public SequenceFlagKind $kindMethods§
public function __construct(public SequenceFlagKind $kind)Parameters
$kind | SequenceFlagKind | The option |
public function deriveClause(Derivation $derivation, Environment $environment): voidDerives nothing: the option has no operand.
Parameters
$derivation | Derivation | |
$environment | Environment |
public function render(Output $out): voidWrites the keywords.
Parameters
$out | Output |
Calls 2
- method-call Output::keyword() line 45
- function-call
explodeline 45
Test cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
SequenceFlagTestcalls