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

查看:71
本文介绍了将 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.

推荐答案

使用服务器上的网络服务返回架构版本号和上次更新的时间戳.如果客户端已过期,它会再次调用以获取更新的架构和/或新数据.

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天全站免登陆