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

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

$loweringLoweringThe lowering this rule belongs to
public function statement(Form $form): Statement
public function engines(Form $form): ShowEngineCatalog

Lowers SHOW ENGINES, whose STORAGE is an optional word.

Parameters

$formForm

Throws

ImplementationGap When a production has no rule
Called from 1
Calls 2
public function createUser(Form $form): ShowCreateUser
public function engine(Form $form): Statement

Lowers SHOW ENGINE of MySQL 5.x: the engine, or ALL, and the report of show_engine_param.

Parameters

$formForm

Returns

Throws

ImplementationGap When a production has no rule
Called from 1
Calls 6

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 $lowering

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