final class IdentitySetting
    implements Node
    uses Snapshot
Public API: explicitly declared with @visibility public.

SET with a sequence option of an identity column.

Mirrors the DefElem a SET SeqOptElem adds to AT_SetIdentity. Source: https://www.postgresql.org/docs/17/sql-altertable.html.

Setting a sequence option of an identitydoctest
$statement = (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze('ALTER TABLE t ALTER a SET CYCLE');
    $statement->statement->commands[0]->options[0]->option->kind // => \SqlSemantics\Platform\PostgreSql\Statement\Table\Sequence\SequenceFlagKind::Cycle

Properties§

public SequenceOption $option

Methods§

public function __construct(public SequenceOption $option)

Parameters

$optionSequenceOptionThe option
public function render(Output $out): void

Writes SET and the option.

Parameters

$outOutput
Calls 1

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
Type checks 1