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.

Reading the column namedoctest
$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 $name
public TypeName $type

Methods§

public function __construct(public Name $name, public TypeName $type)

Parameters

$nameNameThe column name
$typeTypeNameThe column type
public function deriveClause(Derivation $derivation, Environment $environment): void

Derives the type modifiers.

Parameters

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

Writes the name and the type.

Parameters

$outOutput
Test cases 1
Calls 2

Test cases 4§

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

Dedicated tests 2
Other tests reaching this symbol 2

Relations§

Instantiated in 1
Constant reads 1