interface AlterCommand
    extends Node

One action of ALTER TABLE, such as ADD COLUMN, DROP INDEX, RENAME TO, ALGORITHM = … or ADD PARTITION.

Mirrors PT_alter_table_action and the flags of Alter_info. The ALTER TABLE statement derives each action in the scope of the changed table. Source: https://dev.mysql.com/doc/refman/8.4/en/alter-table.html.

Methods§

public function deriveCommand(Derivation $derivation, Environment $scope): void

Derives the parts of the action.

Parameters

$derivationDerivationThe derivation of the ALTER TABLE statement
$scopeEnvironmentThe scope whose only visible relation is the table as the statement leaves it

Test cases 4§

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

Dedicated tests 1
Other tests reaching this symbol 3

Relations§

Implemented by 17
Extended by 3
Constant reads 1
Type declarations 6