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

Hands a statement rule of the server family to the rule class of its area.

Rule: MYSQL-SERVER-STATEMENT-001. Scope: the statement rules that MYSQL-STATEMENT-ROUTES-001 routes to the server family. Each rule name belongs to one area; the area's rule class reads the production. Terminates: one lookup. Source: https://dev.mysql.com/doc/refman/8.4/en/sql-server-administration-statements.html. Status: Implemented.

Methods§

public function __construct(private Lowering $lowering)

Parameters

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

Lowers a production of create, alter or drop routed to the server family.

Parameters

$formForm

Returns

Throws

ImplementationGap When the production has no rule
AnalysisException When the server rejects the statement while it parses it
Called from 1
Calls 6
public function area(string $area, Form $form): Statement

Lowers a production through the rule class of an area.

Parameters

$areastring
$formForm

Returns

Throws

ImplementationGap When a production has no rule
AnalysisException When the server rejects the statement while it parses it
Called from 2
Calls 27

Private surface 3§

Implementation details, listed for orientation only.

private const AREAS = ['begin' => 'transaction', 'begin_stmt' => 'transaction', 'start' => 'transacti…
private const DEFINITIONS = ['DATABASE' => 'database', 'LOGFILE_SYM' => 'logfile', 'TABLESPACE' => 'tablesp…
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 2
Method calls 2