classParameterList
final class ParameterList
implements Relation
uses Snapshot
@visibility public.The parenthesized parameter list of a stored procedure or function.
Rule: MYSQL-ROUTINE-PARAMETERS-001. Inside the routine body every parameter, whatever its direction, is a variable: the list is the relation whose row holds one position per parameter with the declared type, and a name used as a value in the body resolves to that position unless a local variable hides it. A parameter can be NULL. Terminates: one pass over the list. Source: https://dev.mysql.com/doc/refman/8.4/en/create-procedure.html, https://dev.mysql.com/doc/refman/8.4/en/local-variable-scope.html. Status: Implemented.
count((new \SqlSemantics\Platform\MySql\Statement\Routine\ParameterList([]))->parameters) // => 0Properties§
public list<Parameter> $parametersMethods§
public function __construct(list<Parameter> $parameters)Parameters
$parameters | list<Parameter> | The parameters in order |
Calls 2
- static-call Check::listOf() line 50
- class-const Parameter::class() line 50
public function deriveRelation(Derivation $derivation, Environment $environment): RelationFactAnswers the row of the parameters.
Parameters
$derivation | Derivation | |
$environment | Environment |
Returns
Calls 5
- new OutputSlot line 60
- new Known line 60
- class-const Nullability::Nullable() line 60
- new RelationFact line 63
- new RowShape line 63
public function render(Output $out): voidWrites the parameters in parentheses.
Parameters
$out | Output |
Test cases 1
Calls 1
- method-call Output::symbol() line 71
Test cases 6§
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 4
Relations§
Instantiated in 1
Type declarations 4
- type SqlSemantics\Platform\MySql\Lowering\Routine\ParameterRule packages/sql-semantics-mysql/src/Lowering/Routine/ParameterRule.php:55
- type SqlSemantics\Platform\MySql\Rules\Routine\ProgramFacts packages/sql-semantics-mysql/src/Rules/Routine/ProgramFacts.php:65
- type SqlSemantics\Platform\MySql\Statement\Routine\CreateFunction packages/sql-semantics-mysql/src/Statement/Routine/CreateFunction.php:62
- type SqlSemantics\Platform\MySql\Statement\Routine\CreateProcedure packages/sql-semantics-mysql/src/Statement/Routine/CreateProcedure.php:58