apollographql / apollo-kotlin

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

Fail-safe SQLite cache #2961

Open martinbonnin opened 3 years ago

martinbonnin commented 3 years ago

Make the SQLite cache fallback to a No-Op cache if the DB cannot be opened for some reason (most likely no storage left).

oliveeyay commented 2 years ago

Note: We are not seeing any exceptions like SQLFullException for instance 🤔 I'm wondering if SQLDelight is not already handling these by providing an in-memory database for instance?