jQuery SQlite - 客户端存储
我正在寻找 JQuery 或任何其他在客户端(即浏览器)存储数据的方法。我更喜欢 SQLite,因为它似乎是所有支持 HTML5 的最新浏览器的一部分。
该计划基本上是从服务器端和服务器端增量同步数据。在客户端提供一些搜索功能。不确定我可以使用 javascript 进行多少复杂的搜索。
有谁知道任何这样的插件或 JavaScript 解决方案。它到底可行吗?
更新:我正在浏览器中寻找基于sqlite的解决方案,因为它为全文搜索提供了良好的支持。还有尺寸有什么限制吗?我知道 sqlite3 即使对于超过 1GB 的数据也表现良好。浏览器有这样的大小限制吗?这可能吗?
I am looking for JQuery or any other ways to store data on client-side (i.e. browser). I am preferring SQLite as it seems to have support as part of all the latest browsers supporting HTML5.
The plan is to basically to incrementally sync data from server-side & provide some search functionality on client-side. Not sure how much sophisticated search I can do with javascript.
Does anyone know of any such plugins or javascript solutions. Is it viable at all?
UPDATE: I am looking for sqlite based solution in browser as it provides good support for full text search. Also what are the limitations on size? I know sqlite3 performs well even for data more than 1GB. Does browser have any such size limitations? Is this possible at all??
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
“HTML5”包括 localStorage ,它可能对您有用,可以在这里找到一些关于它的重要信息:
http://diveintohtml5.ep.io/storage.html
"HTML5" includes localStorage which might work for you, some great info on it can be had here:
http://diveintohtml5.ep.io/storage.html
如果您计划存储少于 5Mb。
您可以使用 http://www.jstorage.info/
它不是 SQL,但您可以增量同步数据,使用如果存在则转到服务器,如果不存在则转到服务器。另外,它的跨浏览器兼容,可以在较旧的浏览器上运行,但存储空间不那么大
If you planning to store less than 5Mb.
You could use http://www.jstorage.info/
Its not SQL but you can incrementally sync data, use it if it exsit or go to the server if it does not. Plus its cross browswer compatible and works on older browers but not with as much storage
我听说过关于 Lawnchair 的好消息
I've heard good things about Lawnchair