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.

Reading a flagdoctest
$create = (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze('CREATE SEQUENCE s NO CYCLE');
    $create->statement->options[0]->kind // => \SqlSemantics\Platform\PostgreSql\Statement\Table\Sequence\SequenceFlagKind::NoCycle

Properties§

Methods§

public function __construct(public SequenceFlagKind $kind)

Parameters

$kindSequenceFlagKindThe option
public function deriveClause(Derivation $derivation, Environment $environment): void

Derives nothing: the option has no operand.

Parameters

$derivationDerivation
$environmentEnvironment
public function render(Output $out): void

Writes the keywords.

Parameters

$outOutput
Calls 2

Test cases 1§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 1

Relations§

Instantiated in 1