interface IndirectionStep
    extends Clause
Public API: explicitly declared with @visibility public.

One step applied to a value or an assignment target: a field selection, a subscript, a slice or a star.

Mirrors the items of PostgreSQL's A_Indirection node. Steps follow an expression in parentheses or a parameter, and the column of an INSERT or UPDATE target. Source: https://www.postgresql.org/docs/17/sql-expressions.html#SQL-EXPRESSIONS-SUBSCRIPTS, https://www.postgresql.org/docs/17/sql-expressions.html#FIELD-SELECTION.

Reading the field a step selectsdoctest
(new \SqlSemantics\Platform\PostgreSql\Statement\Expression\FieldSelection(new \SqlSemantics\Platform\PostgreSql\Model\Statement\Identifier\Name('city')))->field()->value // => 'city'

Methods§

public function field(): ?Name

Answers the field name when the step selects a field, or null for a subscript, a slice or a star.

Returns

Test cases 1§

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

Dedicated tests 1

Relations§

Implemented by 4
Constant reads 2
Type declarations 1