AsyncQueryBuilder

internal class AsyncQueryBuilder(builder: AbstractQueryBuilder<*>, scope: CoroutineScope, ioDispatcher: CoroutineDispatcher) : AsyncTerminalMethods

Internal implementation of AsyncTerminalMethods.

Executes database queries asynchronously on the IO dispatcher and returns results to the original coroutine context (e.g., UI).

Constructors

Link copied to clipboard
constructor(builder: AbstractQueryBuilder<*>, scope: CoroutineScope, ioDispatcher: CoroutineDispatcher)

Functions

Link copied to clipboard
open override fun execute(params: Map<String, Any?>, onResult: (DataResult<Int>) -> Unit): Job
Link copied to clipboard
open override fun <T> toColumn(kType: KType, params: Map<String, Any?>, onResult: (DataResult<List<T>>) -> Unit): Job
Link copied to clipboard
open override fun <T> toField(kType: KType, params: Map<String, Any?>, onResult: (DataResult<T>) -> Unit): Job
Link copied to clipboard
open override fun <T> toFieldStrict(kType: KType, params: Map<String, Any?>, onResult: (DataResult<T>) -> Unit): Job
Link copied to clipboard
open override fun toList(params: Map<String, Any?>, onResult: (DataResult<List<Map<String, Any?>>>) -> Unit): Job
Link copied to clipboard
open override fun <T> toListOf(kType: KType, params: Map<String, Any?>, onResult: (DataResult<List<T>>) -> Unit): Job
Link copied to clipboard
open override fun toSingle(params: Map<String, Any?>, onResult: (DataResult<Map<String, Any?>?>) -> Unit): Job
Link copied to clipboard
open override fun <T> toSingleOf(kType: KType, params: Map<String, Any?>, onResult: (DataResult<T>) -> Unit): Job
Link copied to clipboard
open override fun toSingleStrict(params: Map<String, Any?>, onResult: (DataResult<Map<String, Any?>>) -> Unit): Job