I'm using `SqlNormalizedCacheFactory` and for JVM ...
# apollo-kotlin
j
I'm using
SqlNormalizedCacheFactory
and for JVM have following (injected using Koin)
Copy code
single { SqlNormalizedCacheFactory("jdbc:sqlite:swapi.db") }
Running a
main
function in JVM code and this works fine first time but on subsequent runs I get
Copy code
Caused by: org.sqlite.SQLiteException: [SQLITE_ERROR] SQL error or missing database (table records already exists)
	at org.sqlite.core.DB.newSQLException(DB.java:1012)
Is there some other init/config needed for case of JVM?
m
Do you mind opening an issue on apollo-kotlin. Looks like you're the first one using the cache with the jdbc driver 🙂
👍 1
j
https://github.com/apollographql/apollo-kotlin/issues/3758 Let me know if I should add any other info to this.
👍 1