Quick question - is there currently any way to use...
# coroutines
d
Quick question - is there currently any way to use coroutines with SQL databases when targeting the JVM? Aside from using
<http://Dispatchers.IO|Dispatchers.IO>
, that is. Specifically, our backend is MS SQL Server.
s
Yes, with https://github.com/spring-projects/spring-data-r2dbc which provides Coroutines API. Not yet GA but we work on it and I think MS SQL server is supported.
👍 2
d
Awesome! Thanks.
r
There is https://github.com/jasync-sql/jasync-sql but not for MS SQL.
d
Yes, I had seen jasync-sql
s
Does r2dbc just use a thread pool for blocking IO behind the scenes? Making withContext(D.IO) { connection.use { } } a better choice for now ?