in your sqldelight config. Setting up a driver is similar to JDBC where you pass the R2DBC driver an R2DBC connection
and then for all your actual database operations you have to either add
.await()
to the end of your call or using an
.await*()
extension helper (e.g.
.awaitQuery()
)
The one catch is that the only supported R2DBC driver right now is MySQL
today i learned 1
k
Kristian Nedrevold
11/30/2022, 8:08 PM
Using it with coroutines I still need to provide a dispatcher, right?
d
Derek Ellis
11/30/2022, 8:09 PM
It would probably be a good practice to, but I believe R2DBC handles the actual threading