如何检查我的localDB是否与remoteDB一致?如果我在两个update_seq上都使用.info(),即使我已经同步后也是如此。那么我可以比较一些值,看看我是不是最新的?
// local info
adapter: "websql"
auto_compaction: true
db_name: "mydbname1"
doc_count: 1771
sqlite_plugin: false
update_seq: 1781
websql_encoding: "UTF-8"
// remote info
adapter: "http"
auto_compaction: false
committed_update_seq: 1790
compact_running: false
data_size: 2593483
db_name: "mydbname"
disk_format_version: 6
disk_size: 4292727
doc_count: 1771
doc_del_count: 0
host: "http://something.com"
instance_start_time: "1443599117360300"
purge_seq: 0
update_seq: 1790
答案 0 :(得分:1)