any database driver implementation with coroutines...
# coroutines
a
any database driver implementation with coroutines?
l
Room for #android, but which kind of database are you looking for? I mean, what kind of program(s) will access that database?
a
Not talking about platform dependent driver, i want to make common jvm application
like for storing credentials and logging errors, logging incoming and outgoing server based backend
c
sqldelight might be the solution you're looking for https://github.com/cashapp/sqldelight
👍 1
l
SqlDelight is currently SQLite only (not suitable for big data sets or many concurrent accesses, but perfect for client-side), and it doesn't provide full coroutines binding (except flow binding for query updates). It's a very nice library nonetheless, I use it and simply use
withContext(<http://Dispatchers.IO|Dispatchers.IO>)
.
b
You get a lot of support from R2DBC with
kotlinx-coroutines-reactor