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

Lowers the FROM clause and the table reference lists of every grammar generation, handing each table factor to its generation.

Rule: MYSQL-FROM-001. Scope: from_clause, opt_from_clause, from_tables, table_reference_list, and the dispatch of table_factor. FROM DUAL is the dummy table; references separated by commas are a comma list; one reference is itself. Constructs: Dual, TableList. Terminates: lists are flattened iteratively. Source: https://dev.mysql.com/doc/refman/8.4/en/select.html, https://dev.mysql.com/doc/refman/8.4/en/join.html. Status: Implemented.

Methods§

public function __construct(private Lowering $lowering)

Parameters

$loweringLoweringThe lowering this rule belongs to
public function tables(Node $tables): Relation

Lowers the tables of a FROM clause, of UPDATE or of DELETE: one reference, a comma list or DUAL.

Parameters

$tablesNode

Returns

Throws

ImplementationGap When a production has no rule
Called from 2
Calls 3

Private surface 2§

Implementation details, listed for orientation only.

private const MODERN = ['table_factor: single_table' => true, 'table_factor: single_table_parens' => t…
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 10
Method calls 10