classRoutineFacts
final class RoutineFacts
Derives the facts of a routine definition.
Rule: PG-ROUTINE-PARAMETERS-001. The parameter types, the result and the options are derived in the statement environment; a default value sees no relation and no parameter. In an SQL-standard body the input parameters are one visible row, under the routine's own name as qualifier, in the outermost scope: a column of a relation the body reads shadows a parameter of the same name, and routine.parameter names the parameter explicitly. The body is derived by PG-ROUTINE-BODY-001; the checks of PG-ROUTINE-CHECK-001 are applied. A routine definition declares no relation and returns no rows. Terminates: one pass over the definition. Source: https://www.postgresql.org/docs/17/xfunc-sql.html#XFUNC-SQL-FUNCTION-ARGUMENTS, https://www.postgresql.org/docs/17/sql-createfunction.html. Status: Implemented.
Methods§
public function create(CreateFunction $function, Derivation $derivation): voidDerives every part of the definition.
Parameters
$function | CreateFunction | |
$derivation | Derivation |
Called from 1
Calls 8
- method-call Derivation::environment() line 36
- method-call Derivation::relation() line 37
- new RoutineChecks line 42
- method-call RoutineChecks::options() line 43
- method-call RoutineChecks::body() line 44
- method-call RoutineChecks::parameters() line 45
- new Environment line 47
- new VisibleRelation line 47
Test cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
RoutineFactsTestcalls