classJoinOn
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.
$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 // => trueProperties§
public Scalar $conditionMethods§
public function __construct(public Scalar $condition)Parameters
$condition | Scalar | The join condition |
public function render(Output $out): voidTest cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
JoinOnTestcalls