Ivan
Bogdan
suspend fun Query.asFlowOnDb( database: Database, transactionIsolation: Int? = null ): Flow<ResultRow> { val q = this return channelFlow { val f = this newSuspendedTransaction (db = database, transactionIsolation = transactionIsolation) { q.forEach { el -> f.send(el) } } } }
A modern programming language that makes developers happier.