classAllFields
final class AllFields
implements IndirectionStep
uses Snapshot
Public API: explicitly declared with
@visibility public.The indirection step .*: every field of a composite value.
Mirrors an A_Star item. It may only end an indirection; in a select list or a row constructor it expands to the fields, elsewhere it stands for the whole composite value. Source: https://www.postgresql.org/docs/17/rowtypes.html#ROWTYPES-USAGE.
(new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze('SELECT ($1).*')->toString() // => 'SELECT ($1).*'Methods§
public function field(): ?Namepublic function deriveClause(Derivation $derivation, Environment $environment): voidDerives nothing: the step holds no expression.
Parameters
$derivation | Derivation | |
$environment | Environment |
Test cases 1
public function render(Output $out): voidWrites the dot and the star.
Parameters
$out | Output |
Test cases 1
Calls 1
- method-call Output::symbol() line 49
Test cases 5§
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 2
Relations§
Instantiated in 1
Type checks 6
- instanceof SqlSemantics\Platform\PostgreSql\Lowering\Expression\PrimaryRule::columnReference() packages/sql-semantics-postgres/src/Lowering/Expression/PrimaryRule.php:118
- instanceof SqlSemantics\Platform\PostgreSql\Rules\Expression\Typing\Subscripting::apply() packages/sql-semantics-postgres/src/Rules/Expression/Typing/Subscripting.php:57
- instanceof SqlSemantics\Platform\PostgreSql\Rules\Expression\Typing\Subscripting::apply() packages/sql-semantics-postgres/src/Rules/Expression/Typing/Subscripting.php:65
- instanceof SqlSemantics\Platform\PostgreSql\Rules\Expression\Typing\Subscripting::apply() packages/sql-semantics-postgres/src/Rules/Expression/Typing/Subscripting.php:78
- instanceof SqlSemantics\Platform\PostgreSql\Rules\Manipulation\Assignments::columns() packages/sql-semantics-postgres/src/Rules/Manipulation/Assignments.php:67
- instanceof SqlSemantics\Platform\PostgreSql\Statement\Query\ExpressionTarget::project() packages/sql-semantics-postgres/src/Statement/Query/ExpressionTarget.php:72