AggregateFunctionStepScope

Properties

Link copied to clipboard
open override val connection: DatabaseConnection

Returns the database connection associated with the hook.

Functions

Link copied to clipboard
inline fun <Data : Any> getAuxDataOrNull(index: Int): Data?

Returns the auxiliary data for the argument at index as Data, or null if there is no associated auxiliary or they have been discarded by SQLite.

Link copied to clipboard
inline fun <C : Any> getOrCreateAggregateContext(noinline compute: () -> C): C

Returns the aggregate context as C.

Link copied to clipboard
inline fun <Data : Any> getOrCreateAuxData(index: Int, noinline compute: () -> Data): Data

Returns the auxiliary data for the argument at index as Data.

Link copied to clipboard
fun setAuxData(index: Int, data: Any)

Sets data as the auxiliary data for the argument at index.

Link copied to clipboard
open override fun setResultError(message: String, result: SqliteResultCode.Failure = SqliteResultCode.ERROR): Nothing

Causes SQLite to throw an exception with message. The default error code is SqliteResultCode.ERROR but can be overriden by supplying the appropriate error code

Link copied to clipboard
open override fun setResultErrorNoMem(): Nothing

Causes SQLite to throw an error indicating that a memory allocation failed.

Link copied to clipboard
open override fun setResultErrorTooBig(): Nothing

Causes SQLite to throw an error indicating that a string or BLOB is too long to represent.