com.huanshankeji.vertx.kotlin.sqlclient.BatchSqlResultSequences.kt Maven / Gradle / Ivy
package com.huanshankeji.vertx.kotlin.sqlclient
import io.vertx.sqlclient.*
fun > SqlResultT.batchSqlResultSequence(): Sequence =
generateSequence(this) {
@Suppress("UNCHECKED_CAST")
it.next() as SqlResultT?
}
fun SqlResult<*>.batchSqlResultRowCountSequence() =
batchSqlResultSequence().map { it.rowCount() }
fun RowSet.batchSqlResultRowSequenceSequence() =
batchSqlResultSequence().map { asSequence() }
© 2015 - 2025 Weber Informatics LLC | Privacy Policy