final class TableChangeRules
Restricted visibility: declared "@visibility SqlSemantics\Platform\MySql". Code outside that scope must not name this declaration.

The entry rules of the table change family: the methods other families and the statement dispatcher call.

Rule: MYSQL-TABLE-CHANGE-ENTRY-001. Scope: ALTER TABLE, partitioning, DROP TABLE and INDEX, RENAME TABLE and TRUNCATE. The method names, parameters and return types are fixed by the family plan; each delegates to the rule classes of this family (MYSQL-TABLE-CHANGE-STATEMENT-001, MYSQL-ALTER-STATEMENT-001, MYSQL-PARTITION-CLAUSE-001, MYSQL-ALTER-MODIFIER-001, MYSQL-ALTER-STANDALONE-001). Terminates: delegates once. Source: https://dev.mysql.com/doc/refman/8.4/en/alter-table.html. Status: Implemented.

Properties§

public Lowering $lowering

Methods§

public function __construct(public Lowering $lowering)

Parameters

$loweringLoweringThe lowering this rule belongs to
public function statement(Node $statement): Statement

Lowers a table change statement: a node of one of the statement rules this family owns.

Parameters

$statementNode

Returns

Throws

ImplementationGap When a production has no rule
Called from 1
Calls 3
public function definition(Form $form): Statement

Lowers a production of alter or drop that MYSQL-DEFINITION-ROUTES-001 routes to this family.

Parameters

$formForm

Returns

Throws

ImplementationGap When a production has no rule
Called from 1
Calls 2
public function partitioning(Node $clause): ?Partitioning

Lowers the partitioning of CREATE TABLE: a node of opt_create_partitioning or partition_clause; an absent clause is null.

Parameters

$clauseNode

Returns

Throws

ImplementationGap When a production has no rule
Calls 2
public function alterOptions(Node $options): list<AlterOption>

Lowers the ALGORITHM and LOCK options of CREATE INDEX and DROP INDEX: a node of opt_index_lock_algorithm or opt_index_lock_and_algorithm.

Parameters

$optionsNode

Returns

Throws

ImplementationGap When a production has no rule
Calls 2
public function partitionNames(Node $list): PartitionSelection

Lowers the partitions a maintenance operation names: a node of all_or_alt_part_name_list.

Parameters

$listNode

Throws

ImplementationGap When a production has no rule
Calls 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§

Instantiated in 1
Method calls 2
Type declarations 1