final class Functions
Restricted visibility: declared "@visibility SqlSemantics\Platform\Sqlite". Code outside that scope must not name this declaration.

The result facts of the built-in SQL functions of SQLite.

Rule: SQLITE-FUNCTION-RESULT-001. The table lists the core, aggregate, window, date and time, and JSON functions of the manual with the number of arguments each accepts, the storage classes of its result and its NULL rule. Result codes: I, R, T, B name storage classes and combine (IR is INTEGER or REAL); * is any class; 1 is the class of the first argument; + is the class of any argument; 2 is the class of any argument after the first; L is the class of the first or third argument. NULL codes: N never NULL; P NULL exactly when an argument can be NULL; C NULL only when every argument can be; F NULL when the first argument can be; Y possibly NULL. Kind codes: s scalar, a aggregate (also usable as a window function), w window only. A function that takes one argument as an aggregate and more as a scalar has both rows. A name outside the table is an application-defined or extension routine: its result depends on the undeclared routine. Source: https://sqlite.org/lang_corefunc.html, https://sqlite.org/lang_aggfunc.html, https://sqlite.org/windowfunctions.html#biwinfunc, https://sqlite.org/lang_datefunc.html, https://sqlite.org/json1.html. Status: Implemented.

Methods§

public function row(string $name, int $arguments): array{int, int, string, string, string}|null
public function aggregates(string $name, int $arguments): bool

Tells whether a call computes one value from many rows: a built-in aggregate called without a window.

Parameters

$namestring
$argumentsint

Returns

bool
Test cases 1
Called from 1
Calls 1

Private surface 2§

Implementation details, listed for orientation only.

private const TABLE = ['abs' => [[1, 1, 'IR', 'P', 's']], 'changes' => [[0, 0, 'I', 'N', 's']], 'char…
private const CLASSES = ['I' => \SqlSemantics\Platform\Sqlite\Statement\Type\Storage::Integer, 'R' => \…

Test cases 11§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 11

Relations§

Instantiated in 3
Method calls 3