classLegacyShowRule
final class LegacyShowRule
Lowers the SHOW statements of MySQL 5.6 and 5.7: show: SHOW show_param.
Rule: MYSQL-SHOW-LEGACY-LOWERING-001. Scope: show, show_param, show_engine_param. Each show_param production is the same command as the 8.0 rule of the same words and lowers into the same class; the MySQL 5.6 and 5.7 spellings of a production differ only in the clause rules they use (wild_and_where or opt_wild_or_where, opt_limit_clause_init or opt_limit_clause, where_clause or opt_where_clause), which MYSQL-SHOW-CLAUSE-LOWERING-001 lowers alike. The statements about schema objects and the server are lowered by MYSQL-SHOW-LEGACY-OBJECT-LOWERING-001. Terminates: every part is a strict subtree. Source: https://dev.mysql.com/doc/refman/5.7/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 show.
Parameters
$form | Form |
Returns
Throws
ImplementationGap When a production has no ruleCalled from 1
Calls 7
- static-call ImplementationGap::production() line 76
- method-call Lowering::form() line 78
- method-call Form::node() line 78
- class-const LegacyShowRule::KINDS() line 79
- method-call LegacyObjectRule::statement() line 81
- new LegacyObjectRule line 81
- method-call LegacyShowRule::session() line 81
Lowers a diagnostics, profiling or replication statement of a kind.
Parameters
$kind | string | |
$form | Form |
Returns
Throws
ImplementationGap When a production has no ruleCalled from 1
Calls 21
- new ClauseRule line 91
- new ShowWarningCount line 94
- new ShowErrorCount line 95
- new ShowWarnings line 96
- method-call Form::node() line 96
- new ShowErrors line 97
- new ShowProfiles line 98
- new ShowProfile line 99
- method-call ClauseRule::sections() line 99
- method-call ClauseRule::query() line 99
- method-call LegacyShowRule::binaryLogs() line 100
- new ShowReplicas line 101
- class-const Terminology::Legacy() line 101
- new ShowBinlogEvents line 102
- method-call ClauseRule::file() line 102
- method-call ClauseRule::position() line 102
- new ShowRelaylogEvents line 103
- function-call
countline 107 - new ShowBinaryLogStatus line 109
- new ShowReplicaStatus line 110
- static-call ImplementationGap::production() line 111
public function binaryLogs(Form $form): ShowBinaryLogsLowers SHOW BINARY LOGS and SHOW MASTER LOGS.
Parameters
$form | Form |
Returns
Throws
ImplementationGap When a production has no ruleCalled from 1
Calls 2
- method-call Form::node() line 122
- new ShowBinaryLogs line 124
Private surface 2§
Implementation details, listed for orientation only.
private const KINDS = ['show_param: COUNT_SYM ( * ) WARNINGS' => 'warningCount', 'show_param: COUNT_S…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
LegacyShowRuleTestcalls