final class RoutineParameters
    implements ParameterDeclarations
    uses Snapshot
Public API: explicitly declared with @visibility public.

The parenthesized parameter list of a routine definition.

In an SQL-standard body the input parameters are visible as one row: a name that is no column of the statement's own relations denotes the parameter of that name, and routine_name.parameter qualifies it. The list is therefore a relation whose row shape holds one slot per input parameter, named when the parameter is named; a parameter can be NULL. Source: https://www.postgresql.org/docs/17/xfunc-sql.html#XFUNC-SQL-FUNCTION-ARGUMENTS.

Counting the parameters of an empty listdoctest
count((new \SqlSemantics\Platform\PostgreSql\Statement\Routine\RoutineParameters([]))->parameters) // => 0

Properties§

public list<FunctionParameter> $parameters

Methods§

public function __construct(list<FunctionParameter> $parameters)

Parameters

$parameterslist<FunctionParameter>The parameters in order
Calls 2
public function infersUndeclared(): bool

Answers that a parameter beyond the input parameters is an error: a routine has exactly the parameters it declares.

Returns

bool
Test cases 1
public function deriveRelation(Derivation $derivation, Environment $environment): RelationFact

Derives the types and default values, and answers the row of the input parameters.

Parameters

$derivationDerivation
$environmentEnvironment
Calls 4
public function render(Output $out): void

Writes the parameters in parentheses.

Parameters

$outOutput
Test cases 1
Calls 1

Test cases 6§

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 3

Relations§

Instantiated in 2
Type declarations 2