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

The ON constraint of a join.

Reading the condition of a joindoctest
$query = (new \SqlSemantics\Platform\Sqlite\Semantics())->analyze('SELECT 1 FROM t JOIN u ON t.a = u.a');
    $query->statement->from->steps[0]->constraint->condition->right->qualifier->name->value // => 'u'

Properties§

public Scalar $condition

Methods§

public function __construct(public Scalar $condition)

Parameters

$conditionScalarThe join condition
public function render(Output $out): void

Writes the constraint.

Parameters

$outOutput
Calls 1

Test cases 7§

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 5

Relations§

Instantiated in 1
Type checks 2
Type declarations 3