final class JoinUsing
    implements Node
    uses Snapshot
Public API: explicitly declared with @visibility public.

The USING constraint of a join: the columns both sides are joined on and merged by.

Reading the columns of a USING constraintdoctest
$query = (new \SqlSemantics\Platform\Sqlite\Semantics())->analyze('SELECT 1 FROM t JOIN u USING (a, b)');
    $query->statement->from->steps[0]->constraint->columns[1]->value // => 'b'

Properties§

public non-empty-list<Name> $columns

Methods§

public function __construct(list<Name> $columns)

Parameters

$columnslist<Name>The column names in written order; at least one
Calls 2
public function render(Output $out): void

Writes the constraint.

Parameters

$outOutput
Calls 4

Test cases 11§

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

Dedicated tests 2
Other tests reaching this symbol 9

Relations§

Instantiated in 1
Type checks 1
Type declarations 3