final class FieldSelection
    implements IndirectionStep
    uses Snapshot
Public API: explicitly declared with @visibility public.

The indirection step .name: the selection of a field, or a further part of a dotted name.

Source: https://www.postgresql.org/docs/17/sql-expressions.html#FIELD-SELECTION.

Reading the selected fielddoctest
(new \SqlSemantics\Platform\PostgreSql\Statement\Expression\FieldSelection(new \SqlSemantics\Platform\PostgreSql\Model\Statement\Identifier\Name('city')))->name->value // => 'city'

Properties§

public Name $name

Methods§

public function __construct(public Name $name)

Parameters

$nameNameThe field name
public function field(): Name

Answers the field name.

Returns

Test cases 1
public function deriveClause(Derivation $derivation, Environment $environment): void

Derives nothing: a field name holds no expression.

Parameters

$derivationDerivation
$environmentEnvironment
Test cases 1
public function render(Output $out): void

Writes the dot and the field name.

Parameters

$outOutput
Test cases 1
Calls 2

Test cases 12§

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 9

Relations§

Instantiated in 1
Type checks 4
Type declarations 1