classResultTable
final class ResultTable
implements Clause
uses Snapshot
Public API: explicitly declared with
@visibility public.The result of a function declared RETURNS TABLE ( column type, ... ): a set of rows of these columns.
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')])));
count((new \SqlSemantics\Platform\PostgreSql\Statement\Routine\ResultTable([new \SqlSemantics\Platform\PostgreSql\Statement\Routine\ResultColumn(new \SqlSemantics\Platform\PostgreSql\Model\Statement\Identifier\Name('id'), $type)]))->columns) // => 1Properties§
public non-empty-list<ResultColumn> $columnsMethods§
public function __construct(list<ResultColumn> $columns)Parameters
$columns | list<ResultColumn> | The columns in order; at least one |
Calls 2
- static-call Check::listOf() line 38
- class-const ResultColumn::class() line 38
public function deriveClause(Derivation $derivation, Environment $environment): voidpublic function render(Output $out): voidWrites TABLE and the column list.
Parameters
$out | Output |
Test cases 1
Calls 1
- method-call Output::keyword() line 56
Test cases 4§
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 1
Relations§
Instantiated in 1
Type checks 2
- instanceof SqlSemantics\Platform\PostgreSql\Rules\Routine\RoutineChecks::parameter() packages/sql-semantics-postgres/src/Rules/Routine/RoutineChecks.php:136
- instanceof SqlSemantics\Platform\PostgreSql\Rules\Routine\RoutineChecks::names() packages/sql-semantics-postgres/src/Rules/Routine/RoutineChecks.php:152