AggregateOptions

sealed external interface AggregateOptions<T> : FunctionOptions(source)

Properties

Link copied to clipboard
abstract var deterministic: Boolean?

If true, the SQLITE_DETERMINISTIC flag is set on the created function.

Link copied to clipboard
abstract var directOnly: Boolean?

If true, the SQLITE_DIRECTONLY flag is set on the created function.

Link copied to clipboard
abstract var inverse: Function<T>?

When this function is provided, the aggregate method will work as a window function. The function receives the current state and the dropped row value. The return value of this function should be the new state.

Link copied to clipboard
abstract var result: (accumulator: T) -> SQLInputValue??

The function to call to get the result of the aggregation. The function receives the final state and should return the result of the aggregation.

Link copied to clipboard
abstract var start: Any

The identity value for the aggregation function. This value is used when the aggregation function is initialized. When a Function is passed the identity will be its return value.

Link copied to clipboard
abstract var step: Function<T>

The function to call for each row in the aggregation. The function receives the current state and the row value. The return value of this function should be the new state.

Link copied to clipboard

If true, integer arguments to function are converted to BigInts. If false, integer arguments are passed as JavaScript numbers.

Link copied to clipboard
abstract var varargs: Boolean?

If true, function may be invoked with any number of arguments (between zero and SQLITE_MAX_FUNCTION_ARG). If false, function must be invoked with exactly function.length arguments.