final class TableList
    implements Relation
    uses Snapshot
Public API: explicitly declared with @visibility public.

Table references separated by commas: their cross product, binding more loosely than every JOIN.

A comma list is never a member of another one; written in parentheses it is a nested relation.

Rule: MYSQL-TABLE-LIST-001. The members are derived from left to right by MYSQL-FROM-SCOPE-001; a lateral member sees the members to its left. Source: https://dev.mysql.com/doc/refman/8.4/en/join.html ("the precedence of the comma operator is less than that of INNER JOIN"). Status: Implemented.

Reading the members of a comma listdoctest
$query = (new \SqlSemantics\Platform\MySql\Semantics())->analyze('SELECT 1 FROM t, u JOIN v ON u.a = v.a');
    [count($query->statement->from->members), $query->statement->from->members[1] instanceof \SqlSemantics\Platform\MySql\Statement\Relation\JoinedTable] // => [2, true]
Refusing a list of one memberdoctest
new \SqlSemantics\Platform\MySql\Statement\Relation\TableList([new \SqlSemantics\Platform\MySql\Statement\Relation\Dual()]) // throws \SqlSemantics\Platform\MySql\Model\Diagnostic\InvalidConstruction

Properties§

public non-empty-list<Relation> $members

Methods§

public function __construct(list<Relation> $members)

Parameters

$memberslist<Relation>The members in written order; at least two
Calls 3
public function deriveRelation(Derivation $derivation, Environment $environment): RelationFact

Derives the members and the shape of their combined rows.

Parameters

$derivationDerivation
$environmentEnvironment
Calls 2
public function render(Output $out): void

Writes the members separated by commas.

Parameters

$outOutput
Calls 1

Test cases 6§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 3
Other tests reaching this symbol 3

Relations§

Instantiated in 3
Type checks 4
Type declarations 1