classRoutineParameters
final class RoutineParameters
implements ParameterDeclarations
uses Snapshot
@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.
count((new \SqlSemantics\Platform\PostgreSql\Statement\Routine\RoutineParameters([]))->parameters) // => 0Properties§
public list<FunctionParameter> $parametersMethods§
public function __construct(list<FunctionParameter> $parameters)Parameters
$parameters | list<FunctionParameter> | The parameters in order |
Calls 2
- static-call Check::listOf() line 46
- class-const FunctionParameter::class() line 46
public function infersUndeclared(): boolAnswers that a parameter beyond the input parameters is an error: a routine has exactly the parameters it declares.
Returns
boolTest cases 1
public function deriveRelation(Derivation $derivation, Environment $environment): RelationFactDerives the types and default values, and answers the row of the input parameters.
Parameters
$derivation | Derivation | |
$environment | Environment |
Returns
Calls 4
- new OutputSlot line 66
- class-const Nullability::Nullable() line 66
- new RelationFact line 70
- new RowShape line 70
public function render(Output $out): voidWrites the parameters in parentheses.
Parameters
$out | Output |
Test cases 1
Calls 1
- method-call Output::symbol() line 78
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
- new SqlSemantics\Platform\PostgreSql\Lowering\Routine\FunctionRule::parameters() packages/sql-semantics-postgres/src/Lowering/Routine/FunctionRule.php:78
- new SqlSemantics\Platform\PostgreSql\Lowering\Routine\FunctionRule::parameters() packages/sql-semantics-postgres/src/Lowering/Routine/FunctionRule.php:88