classUtilityRules
final class UtilityRules
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 $loweringMethods§
public function __construct(public Lowering $lowering)Parameters
$lowering | Lowering | The lowering this rule belongs to |
Lowers a utility statement: a node of one of the statement rules this family owns.
Parameters
$statement | Node |
Returns
Throws
ImplementationGap When a production has no ruleCalled from 1
Calls 9
- method-call Lowering::form() line 47
- method-call SetRule::statement() line 50
- new SetRule line 50
- method-call LegacyShowRule::statement() line 51
- new LegacyShowRule line 51
- method-call ExplainRule::statement() line 52
- new ExplainRule line 52
- method-call ShowRule::statement() line 53
- new ShowRule line 53
public function binaryLogsWord(Node $word): voidConfirms 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
$word | Node |
Throws
ImplementationGap When the production has no ruleCalls 2
- method-call Lowering::form() line 66
- static-call ImplementationGap::production() line 68
Test cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
UtilityRulesTestcalls