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.

Telling which sides a join can extend with NULLsdoctest
[\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(): bool

Tells whether rows of the left side without a match are kept, with NULLs for the right side.

Returns

bool
Test cases 1
Calls 2
public function extendsLeft(): bool

Tells whether rows of the right side without a match are kept, with NULLs for the left side.

Returns

bool
Test cases 1
Calls 2
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

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
Type declarations 3