classStatementRoutes
final class StatementRoutes
Restricted visibility: declared "@visibility SqlSemantics\Platform\MySql". Code outside that scope must not name this declaration.
Names the family that lowers each alternative of the statement rules.
Rule: MYSQL-STATEMENT-ROUTES-001. Scope: statement (5.6, 5.7) and simple_statement (8.0 and later). Every alternative is a unit production whose only symbol is the rule of one statement; the table names the family that owns that rule in the family plan. The tables are generated from the plan and cover every alternative of every shipped release. Terminates: one table lookup. Status: Implemented.
Methods§
public function family(string $signature): ?FamilyAnswers the family of a statement production, or null when the production is not a statement alternative.
Parameters
$signature | string |
Returns
Test cases 2
Called from 1
Calls 2
- class-const StatementRoutes::LEGACY() line 236
- class-const StatementRoutes::MODERN() line 236
Private surface 2§
Implementation details, listed for orientation only.
private const LEGACY = ['statement: alter' => \SqlSemantics\Platform\MySql\Lowering\Dispatch\Family::D…private const MODERN = ['simple_statement: alter_database_stmt' => \SqlSemantics\Platform\MySql\Loweri…Test cases 2§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.