I am looking for the equivalent of jdbcTemplate.queryForStream
using R2DBC. I'm new to R2DBC, but this sounds like an ideal use case for it.
So far all I can find are examples of how to use spring-data-r2dbc for a JPA-like experience. This is really cool, but in my case this is overly complicated. I don't need any entity-mapping features or a persistence framework. I only need to perform simple, non-blocking queries. However, I can't find a single example of that in their docs or anything that even looks like it could be used for that purpose.
So, how can I perform basic queries with Spring + R2DBC? Bonus points if it integrates well with Kotlin coroutines like the CoroutineCrudRepository
does, though this isn't necessary.