I have a relatively small Table in a SQL database in my Android app (around 15 or 20 rows). Every so often I want to be able to do a complete re-sync of the database with an online JSON file, so that:
- Rows in the JSON file that are not in the database are added
- Rows in the JSON file and in the database are updated
- Rows in the database that are not in the JSON file are deleted
What's the best way to do something like this?