read Cursor
fun <T : Any> readCursor(baseClass: Class<T>, query: String, consumer: Consumer<T>, vararg params: Any?): Int
Executes a SELECT and streams each row to consumer — avoids materializing the full result.
fun <T : Any> readCursor(baseClass: Class<T>, query: String, customFields: Map<String, Consumer<Any?>>, consumer: Consumer<T>, vararg params: Any?): Int
Streaming variant that captures values from columns named in customFields via the supplied consumers instead of mapping them onto the entity. See the list-returning read overload for the capture semantics.