apollographql / apollo-kotlin

:robot:  A strongly-typed, caching GraphQL client for the JVM, Android, and Kotlin multiplatform.
https://www.apollographql.com/docs/kotlin
MIT License
3.7k stars 651 forks source link

Javascript SQLite support #3442

Open martinbonnin opened 2 years ago

martinbonnin commented 2 years ago

Make apollo-normalized-cache-sqlite work on JavaScript targets using SQLDelight JS driver

iNoles commented 1 year ago

I am trying to figure out for " Because the SqlJs driver must be initialized asynchronously, the drivers for other platforms must be initialized in a compatible way to be usable in a common source set.

The drivers can be initialized in a coroutine, and a higher-order function can be used to ensure that the driver is initialized before executing a block of code that requires the database"