classAggregateArguments
final class AggregateArguments
implements Clause
uses Snapshot
Public API: explicitly declared with
@visibility public.The argument list of an aggregate: (*), (args), (ORDER BY args) or (args ORDER BY args).
Mirrors the two-part list aggr_args builds: the direct arguments and, for an ordered-set aggregate, the aggregated arguments after ORDER BY. * is an aggregate without arguments. The arguments are kept as written; the server folds a repeated VARIADIC argument of an ordered-set aggregate into one. Source: https://www.postgresql.org/docs/17/sql-createaggregate.html.
(new \SqlSemantics\Platform\PostgreSql\Statement\Routine\Signature\AggregateArguments([]))->star() // => trueProperties§
public list<FunctionParameter> $directpublic list<FunctionParameter>|null $orderedMethods§
public function __construct(
list<FunctionParameter> $direct,
list<FunctionParameter>|null $ordered = null,
)Parameters
$direct | list<FunctionParameter> | The direct arguments; empty with neither ORDER BY nor arguments for `*` |
$ordered | list<FunctionParameter>|null | The arguments after ORDER BY, at least one; null without ORDER BY |
Calls 3
- static-call Check::listOf() line 50
- class-const FunctionParameter::class() line 50
- static-call Check::input() line 53
public function star(): boolTells whether the list is (*): an aggregate without arguments.
Returns
boolTest cases 1
public function deriveClause(Derivation $derivation, Environment $environment): voidDerives the argument types and reports argument lists the server rejects.
Parameters
$derivation | Derivation | |
$environment | Environment |
Test cases 1
Called from 1
Calls 2
- method-call AggregateChecks::arguments() line 73
- new AggregateChecks line 73
public function render(Output $out): voidWrites the list in parentheses.
Parameters
$out | Output |
Test cases 1
Calls 4
- method-call Output::symbol() line 81
- method-call AggregateArguments::star() line 82
- method-call Output::list() line 85
- method-call Output::keyword() line 87
Test cases 8§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 4
Relations§
Instantiated in 4
- new SqlSemantics\Platform\PostgreSql\Lowering\Routine\SignatureRule::aggregateArguments() packages/sql-semantics-postgres/src/Lowering/Routine/SignatureRule.php:194
- new SqlSemantics\Platform\PostgreSql\Lowering\Routine\SignatureRule::aggregateArguments() packages/sql-semantics-postgres/src/Lowering/Routine/SignatureRule.php:195
- new SqlSemantics\Platform\PostgreSql\Lowering\Routine\SignatureRule::aggregateArguments() packages/sql-semantics-postgres/src/Lowering/Routine/SignatureRule.php:196
- new SqlSemantics\Platform\PostgreSql\Lowering\Routine\SignatureRule::aggregateArguments() packages/sql-semantics-postgres/src/Lowering/Routine/SignatureRule.php:197
Method calls 1
Type declarations 5
- type SqlSemantics\Platform\PostgreSql\Lowering\Routine\SignatureRule packages/sql-semantics-postgres/src/Lowering/Routine/SignatureRule.php:189
- type SqlSemantics\Platform\PostgreSql\Rules\Routine\AggregateChecks packages/sql-semantics-postgres/src/Rules/Routine/AggregateChecks.php:32
- type SqlSemantics\Platform\PostgreSql\Rules\Routine\DefineChecks packages/sql-semantics-postgres/src/Rules/Routine/DefineChecks.php:138
- type SqlSemantics\Platform\PostgreSql\Statement\Object\Define packages/sql-semantics-postgres/src/Statement/Object/Define.php:64
- type SqlSemantics\Platform\PostgreSql\Statement\Routine\Signature\AggregateSignature packages/sql-semantics-postgres/src/Statement/Routine/Signature/AggregateSignature.php:33