ScalarFunction typedef

ScalarFunction = Object? Function(List<Object?> arguments)

A scalar function exposed to sql.

The function must either return a bool, num, String, List<int>, BigInt or null.

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

Implementation

typedef ScalarFunction = Object? Function(List<Object?> arguments);