sqldelight
sqldelight copied to clipboard
Android driver support for `generateAsync`
Discussed in https://github.com/cashapp/sqldelight/discussions/4529
Originally posted by sproctor August 14, 2023
I'm working on a multiplatform project that targets Android/JVM/JS. The JS docs imply that I need to use generateAsync
for JS. Migrating my Java implementation seemed pretty simple. It seems like there's no Android driver to support this. Is there something obvious that I'm missing or is async just not ready for Android yet?
I think the library should provide a way to have non-blocking function invocations
I had implemented my own driver, but it turns out to be pointless. You can just create a synchronous schema for JVM/Android. Database.Schema.synchronous()
and pass that to your driver.