final class ColumnStar
    implements Scalar, OutputNaming
    uses Snapshot
Public API: explicitly declared with @visibility public.

A dotted relation name followed by .*: every column of a visible relation.

Mirrors PostgreSQL's ColumnRef node whose last field is A_Star. In a select list the query expands it to the relation's columns; as a value elsewhere it is the whole row of the relation.

Rule: PG-COLUMN-STAR-001. One to three qualifier parts name the relation as written, with its schema and catalog. Facts: the row type of the relation, whose fields are its columns; a relation that is not visible is reported. An unaliased result column is named after the relation. Source: https://www.postgresql.org/docs/17/rowtypes.html#ROWTYPES-USAGE, https://www.postgresql.org/docs/17/sql-select.html#SQL-SELECT-LIST. Status: Implemented.

Reading the relation of a stardoctest
$query = (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze('SELECT ROW(t.*) FROM t');
    $query->toString() // => 'SELECT ROW (t.*) FROM t'

Properties§

public non-empty-list<Name> $qualifiers

Methods§

public function __construct(list<Name> $qualifiers)

Parameters

$qualifierslist<Name>The relation name as written; at least one part
Calls 2
public function outputName(): Name

Names an unaliased result column after the relation.

Returns

Test cases 1
Calls 1
public function deriveScalar(Derivation $derivation, Environment $environment): ScalarFact

Resolves the relation and derives its whole row.

Parameters

$derivationDerivation
$environmentEnvironment

Returns

Calls 2
public function render(Output $out): void

Writes the relation name, the dot and the star.

Parameters

$outOutput
Test cases 1
Calls 3

Test cases 8§

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

Dedicated tests 5
Other tests reaching this symbol 3

Relations§

Instantiated in 1
Type checks 6