classSignatures
final class Signatures
The documented signatures of the pg_catalog functions whose results the model types.
Rule: PG-CALL-SIGNATURES-001. Each row is one pg_proc entry of the manual: the result type, the kind (s scalar, a aggregate, w window), the NULL rule (P NULL exactly when an argument is: the function is strict; N never NULL; Y possibly NULL: an aggregate over no row, or a non-strict function) and the parameter types. Types are catalog names; x[] is the array of x. Only functions whose parameters are concrete types are listed: a call of a polymorphic or "any" parameter is never an exact match, so a routine of the user can always win it. Functions not in the table are typed as calls of undeclared routines. Source: https://www.postgresql.org/docs/17/functions-string.html, https://www.postgresql.org/docs/17/functions-binarystring.html, https://www.postgresql.org/docs/17/functions-bitstring.html, https://www.postgresql.org/docs/17/functions-math.html, https://www.postgresql.org/docs/17/functions-formatting.html, https://www.postgresql.org/docs/17/functions-datetime.html, https://www.postgresql.org/docs/17/functions-json.html, https://www.postgresql.org/docs/17/functions-xml.html, https://www.postgresql.org/docs/17/functions-info.html, https://www.postgresql.org/docs/17/functions-aggregate.html, https://www.postgresql.org/docs/17/functions-window.html, https://www.postgresql.org/docs/17/functions-uuid.html. Termination: constant work. Status: Implemented.
Methods§
public function rows(string $name): list<array{string, string, string, list<string>}>Answers the rows of a function name: result, kind, NULL rule and parameter types.
Parameters
$name | string |
Returns
list<array{string, string, string, list<string>}>Test cases 1
Called from 1
Calls 4
- class-const Signatures::FUNCTIONS() line 180
- function-call
array_sliceline 181 - class-const Signatures::NUMERIC_AGGREGATES() line 183
- class-const Signatures::ORDERED() line 187
Private surface 3§
Implementation details, listed for orientation only.
private const NUMERIC_AGGREGATES = ['sum' => ['int2' => 'int8', 'int4' => 'int8', 'int8' => 'numeric', 'float4' =>…private const ORDERED = ['int2', 'int4', 'int8', 'oid', 'float4', 'float8', 'numeric', 'money', 'text',…private const FUNCTIONS = ['upper' => [['text', 's', 'P', 'text']], 'lower' => [['text', 's', 'P', 'text'…Test cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.