Force sqlite-data queries to fetch updated changes #309
|
I’m using an App Group container to share an SQLite database between the main app and a share extension, but sometimes changes made in the extension aren’t visible in the app. What is the proper way to force queries to fetch the latest changes? |
Replies: 2 comments 4 replies
|
Hi @okmaybenot, you should know that putting SQLite databases in app group containers is precarious. There was a discussion recently about this here #294, and there's an article you should read here. |
|
Also, @mbrandonw, putting App Groups issue aside and returning to the OP, I think I still have a few cases where I’d like to trigger Queries after something unrelated changes. What’s the best way to do that? Probably I could update some unrelated piece of state, but I’m not sure that’s the right approach. Thank you! |
Hi @okmaybenot, you should know that putting SQLite databases in app group containers is precarious. There was a discussion recently about this here #294, and there's an article you should read here.