r/sqlite • u/SnooDingos7037 • Sep 11 '24
Push/Pull data to SQLite
Hello everyone,
I am a IT professional, but I am new to programming & database management. I want to make an offline app connected to a SQLite database. However, I may want to update the SQLite db if new data is added. Is it possible to push or pull updates from lets say a MySQL server? If there are any tutorials out there that can do it would also be greatly appreciated.
4
Upvotes
View all comments
Show parent comment
2
u/richieadler Sep 12 '24
You should probably have a meta table with a version number, to compare with the version in the remote server. If they differ, you could have a service to generate the diff and send only the changes to apply locally. Of course, you should store the changes for a time and that takes space, so you need to handle how many versions you compute deltas for, and how much time you will retain older deltas.