sqldelight icon indicating copy to clipboard operation
sqldelight copied to clipboard

Android driver support for `generateAsync`

Open MMarco94 opened this issue 5 months ago • 1 comments

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

MMarco94 avatar Mar 04 '24 23:03 MMarco94

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.

sproctor avatar Apr 26 '24 13:04 sproctor