Basically you have to set `generateAsync = true` i...
# squarelibraries
d
Basically you have to set
generateAsync = true
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
Using it with coroutines I still need to provide a dispatcher, right?
d
It would probably be a good practice to, but I believe R2DBC handles the actual threading
k
Thanks, I will give it a go 🙂
188 Views