classLegacyObjectRule
final class LegacyObjectRule
Lowers the SHOW statements of MySQL 5.6 and 5.7 about schema objects, stored programs and the server.
Rule: MYSQL-SHOW-LEGACY-OBJECT-LOWERING-001. Scope: the show_param productions MYSQL-SHOW-LEGACY-LOWERING-001 does not lower, and show_engine_param. 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 production of show_param about schema objects or the server.
Parameters
$form | Form |
Returns
Throws
ImplementationGap When a production has no ruleCalled from 1
Calls 5
- class-const LegacyObjectRule::SCHEMA() line 106
- method-call LegacyObjectRule::schema() line 107
- method-call LegacyObjectRule::server() line 110
- class-const LegacyObjectRule::SERVER() line 110
- static-call ImplementationGap::production() line 110
Lowers a statement about schema objects of a kind.
Parameters
$kind | string | |
$form | Form |
Returns
Throws
ImplementationGap When a production has no ruleCalled from 1
Calls 24
- new ClauseRule line 120
- new ShowDatabases line 124
- method-call ClauseRule::filter() line 124
- method-call Form::node() line 124
- new ShowTables line 125
- method-call ClauseRule::listing() line 125
- method-call ClauseRule::database() line 125
- new ShowTriggers line 126
- new ShowEvents line 127
- new ShowTableStatus line 128
- new ShowOpenTables line 129
- method-call LegacyObjectRule::columns() line 130
- method-call LegacyObjectRule::keys() line 131
- new ShowCreateDatabase line 132
- new ShowCreateTable line 133
- new InspectedTable line 133
- new ShowCreateView line 134
- new ShowCreateProcedure line 135
- new ShowCreateFunction line 136
- new ShowCreateTrigger line 137
- new ShowCreateEvent line 138
- new ShowProcedureCode line 139
- new ShowFunctionCode line 140
- static-call ImplementationGap::production() line 141
public function columns(Form $form): ShowColumnsLowers SHOW COLUMNS.
Parameters
$form | Form |
Returns
Throws
ImplementationGap When a production has no ruleCalled from 1
Calls 8
- new ClauseRule line 152
- method-call ClauseRule::preposition() line 153
- method-call Form::node() line 153
- new ShowColumns line 155
- new InspectedTable line 155
- method-call ClauseRule::listing() line 155
- method-call ClauseRule::database() line 155
- method-call ClauseRule::filter() line 155
Lowers SHOW INDEX.
Parameters
$form | Form |
Returns
Throws
ImplementationGap When a production has no ruleCalled from 1
Calls 7
- new ClauseRule line 165
- method-call Form::node() line 166
- method-call ClauseRule::preposition() line 167
- new ShowKeys line 169
- new InspectedTable line 169
- method-call ClauseRule::database() line 169
- method-call ClauseRule::where() line 169
Lowers a statement about the server of a kind.
Parameters
$kind | string | |
$form | Form |
Returns
Throws
ImplementationGap When a production has no ruleCalled from 1
Calls 19
- new ClauseRule line 179
- method-call Form::node() line 181
- new ShowPlugins line 185
- method-call LegacyObjectRule::engine() line 186
- method-call LegacyObjectRule::engines() line 187
- new ShowPrivileges line 188
- new ShowStatus line 189
- method-call ClauseRule::scope() line 189
- method-call ClauseRule::filter() line 189
- new ShowVariables line 190
- new ShowProcesslist line 191
- method-call ClauseRule::listing() line 191
- new ShowCharacterSet line 192
- new ShowCollation line 193
- new ShowGrants line 194
- method-call LegacyObjectRule::createUser() line 196
- new ShowProcedureStatus line 197
- new ShowFunctionStatus line 198
- static-call ImplementationGap::production() line 199
public function engines(Form $form): ShowEngineCatalogLowers SHOW ENGINES, whose STORAGE is an optional word.
Parameters
$form | Form |
Returns
Throws
ImplementationGap When a production has no ruleCalled from 1
Calls 2
- method-call Form::node() line 210
- new ShowEngineCatalog line 212
public function createUser(Form $form): ShowCreateUserLowers SHOW CREATE USER of MySQL 5.7.
Parameters
$form | Form |
Returns
Throws
ImplementationGap When a production has no ruleCalled from 1
Calls 2
- method-call Form::node() line 222
- new ShowCreateUser line 224
Lowers SHOW ENGINE of MySQL 5.x: the engine, or ALL, and the report of show_engine_param.
Parameters
$form | Form |
Returns
Throws
ImplementationGap When a production has no ruleCalled from 1
Calls 6
- method-call Form::node() line 234
- method-call Lowering::form() line 235
- new ShowEngineStatus line 238
- new ShowEngineMutex line 239
- new ShowEngineLogs line 240
- static-call ImplementationGap::production() line 241
Private surface 3§
Implementation details, listed for orientation only.
private const SCHEMA = ['show_param: DATABASES wild_and_where' => 'databases', 'show_param: DATABASES …private const SERVER = ['show_param: PLUGINS_SYM' => 'plugins', 'show_param: ENGINE_SYM known_storage_…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
LegacyObjectRuleTestcalls