I have created an app in xcode with sqlite3.I want to create a button named sync to sync with my mysql database in my server. Any suggestion about sync process? Please let m
A few questions:
If you only need to pull inserts / updates from the server, you could create a PHP script, which would return the SQLite statements to execute. The php script would take a parameter of the last update sequence/time from the client.
If you plan to do two way sync'ing, then you have to think about merges and conflict resolution. For two way, it's best for each side to have a transaction queue. Simply record every CRUD statement executed against the database. When syncing, apply these statements and then truncate the queue.