classShowRule
final class ShowRule
Lowers the SHOW statements of MySQL 8.0 and later: one rule per statement.
Rule: MYSQL-SHOW-LOWERING-001. Scope: every show_*_stmt rule. A rule lowers into the class of its command; the statements about schema objects, stored programs and the server are lowered by MYSQL-SHOW-OBJECT-LOWERING-001, the clauses by MYSQL-SHOW-CLAUSE-LOWERING-001. SLAVE and REPLICA, and MASTER STATUS and BINARY LOG STATUS, are kept as written (Terminology). SHOW PARSE_TREE lowers the statement it wraps through the statement dispatcher. Terminates: every part is a strict subtree. Source: https://dev.mysql.com/doc/refman/8.4/en/show.html. Status: Implemented.
Methods§
public function __construct(private Lowering $lowering)Parameters
$lowering | Lowering | The lowering this rule belongs to |
Lowers a node of one of the show_*_stmt rules.
Parameters
$form | Form |
Returns
Throws
ImplementationGap When a production has no ruleCalled from 1
Calls 13
- new ClauseRule line 57
- new ShowWarnings line 60
- method-call Form::node() line 60
- new ShowErrors line 62
- new ShowWarningCount line 64
- new ShowErrorCount line 66
- new ShowProfiles line 68
- new ShowProfile line 70
- method-call ClauseRule::sections() line 70
- method-call ClauseRule::query() line 70
- new ShowParseTree line 72
- method-call Lowering::statement() line 72
- method-call ShowRule::replication() line 74
Lowers the SHOW statements about binary logs and replication.
Parameters
$form | Form |
Returns
Throws
ImplementationGap When a production has no ruleCalled from 1
Calls 14
- new ClauseRule line 85
- method-call Form::node() line 88
- new ShowBinaryLogs line 90
- new ShowReplicas line 94
- class-const Terminology::Legacy() line 94
- class-const Terminology::Current() line 96
- new ShowBinlogEvents line 98
- method-call ClauseRule::file() line 98
- method-call ClauseRule::position() line 98
- new ShowRelaylogEvents line 100
- new ShowReplicaStatus line 102
- new ShowBinaryLogStatus line 106
- method-call ObjectRule::statement() line 110
- new ObjectRule line 110
Private surface 1§
Implementation details, listed for orientation only.
private Lowering $loweringTest cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
ShowRuleTestcalls