final class WholeRows
Restricted visibility: declared "@visibility SqlSemantics". Code outside that scope must not name this declaration.

Resolves a relation name used as a value: the whole row of a visible relation.

Rule: PG-WHOLE-ROW-001. The name is matched against the relations visible at the position and then at the enclosing query levels, nearest first: an alias by its name alone, an unaliased relation by its name and, when written, its schema. The nearest level with a match decides; two matches there are ambiguous; a relation a lateral item must not reference is reported (PG-LATERAL-JOIN-001). Facts: the row type of the relation, whose fields are its columns, or a dependence on the missing inputs of an open shape; a row of an outer join's NULL side is NULL, so the value can be NULL. Termination: the chain of levels and each relation list are finite. Source: https://www.postgresql.org/docs/17/rowtypes.html#ROWTYPES-USAGE, https://www.postgresql.org/docs/17/sql-expressions.html#SQL-EXPRESSIONS-COLUMN-REFS. Status: Implemented.

Methods§

public function star(
    Derivation $derivation,
    Environment $environment,
    non-empty-list<Name> $qualifiers,
): ScalarFact

Derives the whole row a name.* reference stands for; a relation that is not visible is reported.

Parameters

$derivationDerivation
$environmentEnvironment
$qualifiersnon-empty-list<Name>

Returns

Test cases 1
Called from 1
Calls 9

Test cases 4§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 4

Relations§

Instantiated in 3
Method calls 3