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

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

Rule: MYSQL-UTILITY-ENTRY-001. Scope: SET, SHOW, EXPLAIN, DESCRIBE, HELP and USE. The method names, parameters and return types are fixed by the family plan. A statement node is handed to the rule class of its statement rule: SET (MYSQL-SET-LOWERING-001), the SHOW rules of MySQL 5.x (MYSQL-SHOW-LEGACY-LOWERING-001) and 8.0 and later (MYSQL-SHOW-LOWERING-001), and EXPLAIN, DESCRIBE, HELP and USE (MYSQL-EXPLAIN-LOWERING-001). Source: https://dev.mysql.com/doc/refman/8.4/en/sql-utility-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 utility 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 9
public function binaryLogsWord(Node $word): void

Confirms that a node is master_or_binary, whose MASTER and BINARY are the same keyword before LOGS.

The writer emits BINARY, which every release accepts (UtilityNoise).

Parameters

$wordNode

Throws

ImplementationGap When the 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 1
Type declarations 1