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

RESTART [ [ WITH ] value ] of an identity column.

The optional WITH changes nothing and is not kept. Source: https://www.postgresql.org/docs/17/sql-altertable.html.

Restarting an identitydoctest
$statement = (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze('ALTER TABLE t ALTER a RESTART');
    $statement->statement->commands[0]->options[0]->value // => null

Properties§

public SignedNumber|null $value = null

Methods§

public function __construct(public SignedNumber|null $value = null)

Parameters

$valueSignedNumber|nullThe value; null restarts at the start value
public function render(Output $out): void

Writes RESTART and the value.

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