forEachObject
inline fun <T : Any> forEachObject(params: Map<String, Any?> = emptyMap(), fetchSize: Int, crossinline block: (T) -> Unit)
Runs the query and hands each row, mapped onto T, to block as it arrives.
Parameters
fetchSize
As on forEachRow: rows per batch, 0 for the whole result at once, and required.
inline fun <T : Any> forEachObject(vararg params: Pair<String, Any?>, fetchSize: Int, crossinline block: (T) -> Unit)
Runs the query and hands each row, mapped onto T, to block as it arrives.