asFlow

fun Query.asFlow(coroutineContext: CoroutineContext? = null): Flow<ResultSet>(source)

Returns a Flow that emits the Query ResultSet every time the underlying data set changes.

If the query fails, the Flow throws an error.