final class ParameterList
    implements Relation
    uses Snapshot
Public API: explicitly declared with @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.

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

Properties§

public list<Parameter> $parameters

Methods§

public function __construct(list<Parameter> $parameters)

Parameters

$parameterslist<Parameter>The parameters in order
Calls 2
public function deriveRelation(Derivation $derivation, Environment $environment): RelationFact

Answers the row of the parameters.

Parameters

$derivationDerivation
$environmentEnvironment
Calls 5
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 2
Other tests reaching this symbol 4

Relations§

Instantiated in 1
Type declarations 4