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

ON condition: the join condition of a qualified join.

The condition sees the two sides of its join and the enclosing query, not the other FROM items. Source: https://www.postgresql.org/docs/17/queries-table-expressions.html#QUERIES-JOIN.

Reading a join conditiondoctest
$query = (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze('SELECT 1 FROM a JOIN b ON TRUE');
    $query->statement->from->condition instanceof \SqlSemantics\Platform\PostgreSql\Statement\Relation\JoinOn // => true

Properties§

public Scalar $condition

Methods§

public function __construct(public Scalar $condition)

Parameters

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

Writes ON and the condition.

Parameters

$outOutput
Calls 1

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 1
Type checks 2
Type declarations 2