ResultQuery
The same query with every terminal returning a DataResult instead of throwing, as if wrapped in dbResult. Reached by RunnableQuery.asResult.
val senators = db.rawQuery("SELECT id, cognomen FROM senate WHERE province_id = @p")
.asResult()
.fetchObjects<Senator>("p" to 7)Content copied to clipboard
Inside a transaction, return the failure from transactionResult, which rolls back on it; a plain transaction commits over it.
Functions
Link copied to clipboard
Link copied to clipboard
As RunnableQuery.fetchField - a non-nullable T still throws for a missing row.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
As RunnableQuery.fetchObjectStrict - a missing row is still thrown.
Link copied to clipboard
Link copied to clipboard
As RunnableQuery.fetchRowStrict - a missing row is still thrown.
Link copied to clipboard
inline fun <T> forEachField(params: Map<String, Any?> = emptyMap(), fetchSize: Int, noinline block: (T) -> Unit): DataResult<Unit>
inline fun <T> forEachField(vararg params: Pair<String, Any?>, fetchSize: Int, noinline block: (T) -> Unit): DataResult<Unit>
Link copied to clipboard
fun forEachRow(params: Map<String, Any?> = emptyMap(), fetchSize: Int, block: (Row) -> Unit): DataResult<Unit>
fun forEachRow(vararg params: Pair<String, Any?>, fetchSize: Int, block: (Row) -> Unit): DataResult<Unit>
Link copied to clipboard