-
|
Hello there 👋🏻 I was wondering on how to use this package with other targets, i.e. widgets or share extension, I have seen this discussion here but it still doesn't give the full answer or what to do if the target needs to write to the database. Also I noted that GRDB has a guide for sharing a database, maybe it's not the best but it's doable? so it's better to go with GRDB since SQLiteData doesn't have such capability? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
SQLiteData uses GRDB under the hood, so whatever solution is provided for GRDB works equally well for SQLiteData. |
Beta Was this translation helpful? Give feedback.
-
|
As was said in the linked post, I would avoid it. Try to add a shared json/plist file between app targets instead and put the minimal amount of info you need in that. Sharing sqlite databases across targets can lead to a lot of issues. |
Beta Was this translation helpful? Give feedback.
SQLiteData uses GRDB under the hood, so whatever solution is provided for GRDB works equally well for SQLiteData.