enumJoinKind
enum JoinKind: string
Public API: explicitly declared with
@visibility public.The kind of a join.
Mirrors PostgreSQL's JoinType for the joins the grammar writes; CROSS JOIN is an inner join without a condition and is kept as its own kind because it is written so. INNER and OUTER are optional words. Source: https://www.postgresql.org/docs/17/queries-table-expressions.html#QUERIES-JOIN.
[\SqlSemantics\Platform\PostgreSql\Statement\Relation\JoinKind::Left->extendsRight(), \SqlSemantics\Platform\PostgreSql\Statement\Relation\JoinKind::Left->extendsLeft()] // => [true, false]Cases§
case Cross = 'CROSS'case Inner = 'INNER'case Left = 'LEFT'case Right = 'RIGHT'case Full = 'FULL'Methods§
public function extendsRight(): boolTells whether rows of the left side without a match are kept, with NULLs for the right side.
Returns
boolTest cases 1
Calls 2
- class-const JoinKind::Left() line 32
- class-const JoinKind::Full() line 32
public function extendsLeft(): boolTells whether rows of the right side without a match are kept, with NULLs for the left side.
Returns
boolTest cases 1
Calls 2
- class-const JoinKind::Right() line 40
- class-const JoinKind::Full() line 40
public function keywords(): list<string>Answers the keywords written before JOIN; INNER is optional and not written.
Returns
list<string>Called from 1
Calls 5
- class-const JoinKind::Inner() line 51
- class-const JoinKind::Cross() line 52
- class-const JoinKind::Left() line 52
- class-const JoinKind::Right() line 52
- class-const JoinKind::Full() line 52
Test cases 4§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 3
Other tests reaching this symbol 1
Relations§
Method calls 1
Constant reads 18
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Query\FromRule packages/sql-semantics-postgres/src/Lowering/Query/FromRule.php:52
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Query\FromRule packages/sql-semantics-postgres/src/Lowering/Query/FromRule.php:53
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Query\FromRule packages/sql-semantics-postgres/src/Lowering/Query/FromRule.php:54
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Query\FromRule packages/sql-semantics-postgres/src/Lowering/Query/FromRule.php:55
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Query\FromRule::joined() packages/sql-semantics-postgres/src/Lowering/Query/FromRule.php:178
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Query\FromRule::joined() packages/sql-semantics-postgres/src/Lowering/Query/FromRule.php:180
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Query\FromRule::joined() packages/sql-semantics-postgres/src/Lowering/Query/FromRule.php:182
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Query\FromRule::kind() packages/sql-semantics-postgres/src/Lowering/Query/FromRule.php:196
- class-const SqlSemantics\Platform\PostgreSql\Rules\Query\Locking::tables() packages/sql-semantics-postgres/src/Rules/Query/Locking.php:159
- class-const SqlSemantics\Platform\PostgreSql\Rules\Query\Locking::tables() packages/sql-semantics-postgres/src/Rules/Query/Locking.php:159
- class-const SqlSemantics\Platform\PostgreSql\Rules\Query\Locking::tables() packages/sql-semantics-postgres/src/Rules/Query/Locking.php:160
- class-const SqlSemantics\Platform\PostgreSql\Rules\Query\Locking::tables() packages/sql-semantics-postgres/src/Rules/Query/Locking.php:160
- class-const SqlSemantics\Platform\PostgreSql\Rules\Resolution\FromScope::enter() packages/sql-semantics-postgres/src/Rules/Resolution/FromScope.php:112
- class-const SqlSemantics\Platform\PostgreSql\Rules\Resolution\FromScope::enter() packages/sql-semantics-postgres/src/Rules/Resolution/FromScope.php:112
- class-const SqlSemantics\Platform\PostgreSql\Rules\Resolution\Joining::merged() packages/sql-semantics-postgres/src/Rules/Resolution/Joining.php:172
- class-const SqlSemantics\Platform\PostgreSql\Rules\Resolution\Joining::merged() packages/sql-semantics-postgres/src/Rules/Resolution/Joining.php:173
- class-const SqlSemantics\Platform\PostgreSql\Statement\Relation\Join::__construct() packages/sql-semantics-postgres/src/Statement/Relation/Join.php:54
- class-const SqlSemantics\Platform\PostgreSql\Statement\Relation\Join::__construct() packages/sql-semantics-postgres/src/Statement/Relation/Join.php:56
Type declarations 3
- type SqlSemantics\Platform\PostgreSql\Lowering\Query\FromRule packages/sql-semantics-postgres/src/Lowering/Query/FromRule.php:192
- type SqlSemantics\Platform\PostgreSql\Rules\Resolution\Joining packages/sql-semantics-postgres/src/Rules/Resolution/Joining.php:166
- type SqlSemantics\Platform\PostgreSql\Statement\Relation\Join packages/sql-semantics-postgres/src/Statement/Relation/Join.php:48