final class StarTarget
    implements Target
    uses Snapshot
Public API: explicitly declared with @visibility public.

A select-list *: every column of the FROM items.

Mirrors PostgreSQL's ResTarget whose value is a bare A_Star. The fields follow PG-STAR-001. Source: https://www.postgresql.org/docs/17/sql-select.html#SQL-SELECT-LIST.

Keeping an unexpandable star as a typed requestdoctest
$query = (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze('SELECT * FROM t');
    [$query->statement->targets[0] instanceof \SqlSemantics\Platform\PostgreSql\Statement\Query\StarTarget, $query->facts->output->projection[0] instanceof \SqlSemantics\Platform\PostgreSql\Model\Statement\Shape\OpenStar] // => [true, true]

Methods§

public function project(Derivation $derivation, Environment $environment, int $position): array

Expands the star over the FROM items of the level.

Parameters

$derivationDerivation
$environmentEnvironment
$positionint

Returns

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

Writes the star.

Parameters

$outOutput
Calls 1

Test cases 7§

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

Dedicated tests 1
Other tests reaching this symbol 6

Relations§

Instantiated in 1