WebSQL数据库会与Chrome的应用同步同步吗? [英] Will a WebSQL DB sync with Chrome's app sync?

查看:107
本文介绍了WebSQL数据库会与Chrome的应用同步同步吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为Chrome构建一个打包的应用程序。我目前使用WebSQL来存储/检索数据。如果我选择在Chrome中同步应用程序,我在一台机器上输入的数据会显示在另一台机器上吗?

例如,在我的桌面上打开应用程序并添加一条记录。如果我在笔记本电脑上打开该应用程序,该记录会显示出来吗?



我还没有到可以同步我的应用程序的程度,所以我无法测试它自己。有没有人做过这个?

解决方案

不,Chrome不幸(?)不会同步您的WebSQL数据库。你必须通过你的服务器来处理同步。
只需查看Chrome在同步首选项中提供的选项:




  • 首选项

  • 书签

  • 扩展

  • 自动填充

  • 主题



请注意,甚至没有列出Cookies,更不用说WebSQL数据库了。同步数据库在技术上也很困难,因为它们可能会变得非常大。 WebSQL数据库的初始限制似乎是5MB或类似的,但他们可以根据需要请求更多。我认为已安装的网络应用程序甚至可以请求无限制的存储权限。



如果两个用户同时编辑相同的数据,那么会出现并发问题。 b $ b

I'm building a packaged app for Chrome. I'm currently using WebSQL to store/retrieve data. Will data I input on one machine show up on another machine if I choose to sync apps in Chrome?

For example, on my desktop I open the app and add a record. If I open the app on my laptop will that record show up?

I'm not to the point where I can sync my app yet, so I can't test it myself. Has anybody done this before?

解决方案

No, Chrome unfortunately (?) won't sync your WebSQL DB. You have to handle syncing through your server. Just look at the choices Chrome gives you in the sync preferences:

  • Preferences
  • Bookmarks
  • Extensions
  • Autofill
  • Themes
  • Apps

Notice that not even Cookies are listed, let alone WebSQL databases. Syncing Databases would also be technically difficult, because they can get pretty big. The initial limit for WebSQL databases seems to be 5MB or something like that, but they can request more as needed. I think installed web apps can even request unlimited storage permissions.

Also there would be concurrency problems if two users edited the same data at the same time.

这篇关于WebSQL数据库会与Chrome的应用同步同步吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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