classJoinOn
final class JoinOn
implements Node
uses Snapshot
Public API: explicitly declared with
@visibility public.The ON constraint of a join.
$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 $conditionMethods§
public function __construct(public Scalar $condition)Parameters
$condition | Scalar | The join condition |
public function render(Output $out): voidTest 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
FromRuleTest::testConstraintLowersOnUsingAndNonecallsFromRuleTest::testTermsAnswersOneTermWithoutAConstraintAndAChainOtherwisecallsFromScopeTest::testEnterDerivesEveryOnConditionInTheScopeOfTheWholeChaincallsFromScopeTest::testEnterReportsConstraintsWithoutAJoinAndInvalidOperatorscallsJoinChainTest::testDeriveRelationReportsAConstraintWrittenWithoutAJoincalls
Relations§
Instantiated in 1
Type checks 2
Type declarations 3
- type SqlSemantics\Platform\Sqlite\Lowering\Query\FromRule packages/sql-semantics-sqlite/src/Lowering/Query/FromRule.php:160
- type SqlSemantics\Platform\Sqlite\Statement\Relation\JoinChain packages/sql-semantics-sqlite/src/Statement/Relation/JoinChain.php:54
- type SqlSemantics\Platform\Sqlite\Statement\Relation\JoinStep packages/sql-semantics-sqlite/src/Statement/Relation/JoinStep.php:33