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

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

Rule: MYSQL-SERVER-ENTRY-001. Scope: transactions, XA, locks, table maintenance, key caches, FLUSH, KILL, plugins and components, databases, foreign servers, spatial reference systems, tablespaces, undo tablespaces, log file groups, ALTER INSTANCE, CLONE, SHUTDOWN and RESTART. The method names, parameters and return types are fixed by the family plan; each delegates to the rule class of its area (MYSQL-SERVER-STATEMENT-001). Source: https://dev.mysql.com/doc/refman/8.4/en/sql-server-administration-statements.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 server administration statement: a node of one of the statement rules this family owns.

Parameters

$statementNode

Returns

Throws

ImplementationGap When a production has no rule
AnalysisException When the server rejects the statement while it parses it
Called from 2
Calls 2
public function definition(Form $form): Statement

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

Parameters

$formForm

Returns

Throws

ImplementationGap When a production has no rule
AnalysisException When the server rejects the statement while it parses it
Called from 1
Calls 2
public function checkOptions(Node $options): list<CheckOption>

Lowers the options of a table check: a node of opt_mi_check_type or opt_mi_check_types; no option is empty.

Parameters

$optionsNode

Returns

Throws

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

Lowers the options of a table repair: a node of opt_mi_repair_type or opt_mi_repair_types; no option is empty.

Parameters

$optionsNode

Returns

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 3
Type declarations 1