https://kotlinlang.org logo
#coroutines
Title
# coroutines
a

Animesh Sahu

10/24/2019, 4:07 PM
any database driver implementation with coroutines?
l

louiscad

10/24/2019, 4:10 PM
Room for #android, but which kind of database are you looking for? I mean, what kind of program(s) will access that database?
a

Animesh Sahu

10/24/2019, 4:12 PM
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

commanderpepper

10/24/2019, 4:59 PM
sqldelight might be the solution you're looking for https://github.com/cashapp/sqldelight
👍 1
l

louiscad

10/24/2019, 6:59 PM
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

bdawg.io

10/24/2019, 7:04 PM
You get a lot of support from R2DBC with
kotlinx-coroutines-reactor
3 Views