ScalarFunction typedef

ScalarFunction = Object? Function(SqliteArguments arguments)

A scalar function exposed to sql.

The function must either return a bool, num, String, List<int>, BigInt or null. It may also return a SubtypedValue thereof, see that class for more details

If invoking the function throws a Dart exception, the sql function will result with an error result as well.

Implementation

typedef ScalarFunction = Object? Function(SqliteArguments arguments);