classResultColumn
final class ResultColumn
implements Clause
uses Snapshot
Public API: explicitly declared with
@visibility public.One column of the result of a function declared RETURNS TABLE ( ... ).
Mirrors PostgreSQL's FunctionParameter with mode TABLE: an output parameter that is a column of each result row. Source: https://www.postgresql.org/docs/17/sql-createfunction.html.
$type = new \SqlSemantics\Platform\PostgreSql\Statement\Type\TypeName(new \SqlSemantics\Platform\PostgreSql\Statement\Type\Designation\NamedDesignation(new \SqlSemantics\Platform\PostgreSql\Statement\Name\DottedName([new \SqlSemantics\Platform\PostgreSql\Model\Statement\Identifier\Name('int4')])));
(new \SqlSemantics\Platform\PostgreSql\Statement\Routine\ResultColumn(new \SqlSemantics\Platform\PostgreSql\Model\Statement\Identifier\Name('id'), $type))->name->value // => 'id'Properties§
public Name $namepublic TypeName $typeMethods§
public function deriveClause(Derivation $derivation, Environment $environment): voidDerives the type modifiers.
Parameters
$derivation | Derivation | |
$environment | Environment |
Test cases 1
Calls 1
- method-call TypeName::deriveClause() line 45
public function render(Output $out): voidWrites the name and the type.
Parameters
$out | Output |
Test cases 1
Calls 2
- method-call Output::name() line 53
- class-const NameUse::Routine() line 53
Test cases 4§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.