将SQLite客户端数据库与MySQL服务器数据库同步 [英] Synchronizing an SQLite client database with a MySQL server database

查看:305
本文介绍了将SQLite客户端数据库与MySQL服务器数据库同步的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在xcode中使用sqlite3创建了一个应用程序。我想创建一个名为sync的按钮,以便与我的服务器中的mysql数据库同步。有关同步过程的任何建议?

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 me know.

推荐答案

使用服务器上的webservice返回模式版本号和最后更新的timedate戳记。如果客户端过期,则第二次调用以获取更新的模式和/或新数据。

Use a webservice on the server to return both a schema version number and a last updated timedate stamp. If the client is out of date, it makes a second call to get the updated schema and/or new data.

这篇关于将SQLite客户端数据库与MySQL服务器数据库同步的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆