classIdentityRestart
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.
$statement = (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze('ALTER TABLE t ALTER a RESTART');
$statement->statement->commands[0]->options[0]->value // => nullProperties§
public SignedNumber|null $value = nullMethods§
public function __construct(public SignedNumber|null $value = null)Parameters
$value | SignedNumber|null | The value; null restarts at the start value |
public function render(Output $out): voidTest cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
IdentityRestartTestcalls
Relations§
Instantiated in 2
- new SqlSemantics\Platform\PostgreSql\Lowering\Table\AlterCommandRule::identity() packages/sql-semantics-postgres/src/Lowering/Table/AlterCommandRule.php:328
- new SqlSemantics\Platform\PostgreSql\Lowering\Table\AlterCommandRule::identity() packages/sql-semantics-postgres/src/Lowering/Table/AlterCommandRule.php:329