interface AlterCommand
    extends Clause
Public API: explicitly declared with @visibility public.

One action of ALTER TABLE, ALTER INDEX, ALTER SEQUENCE, ALTER VIEW, ALTER MATERIALIZED VIEW or ALTER FOREIGN TABLE.

Mirrors PostgreSQL's AlterTableCmd and PartitionCmd; each implementation is one group of AlterTableType values with the same operands. An action is derived where the altered relation is the only visible relation; it changes no declaration of the context. Source: https://www.postgresql.org/docs/17/sql-altertable.html.

Reading the actions of ALTER TABLEdoctest
$alter = (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze('ALTER TABLE t ADD c int, DROP d');
    count($alter->statement->commands) // => 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§

Implemented by 27
Constant reads 1
Type declarations 9