用于桥接IndexedDB和WebSQL的JavaScript库 [英] JavaScript Library to Bridge IndexedDB and WebSQL

查看:158
本文介绍了用于桥接IndexedDB和WebSQL的JavaScript库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我很好奇是否有一个库或项目为IndexedDB或WebSQL提供通用接口,具体取决于用户的浏览器支持。如果他们使用的是Chrome / Safari,请使用WebSQL,如果他们使用的是Firefox或Internet Explorer,请使用IndexedDB。

I'm curious if there is a library or a project out there to provide a generic interface to IndexedDB or to WebSQL, depending on user's browser's support. If they're using Chrome/Safari, use WebSQL, if they're using Firefox or Internet Explorer, use IndexedDB.

这个问题似乎有自己开发的解决方案,但没有提供任何源代码。

The poster of this question appears to have homegrown a solution, but did not provide any source code.

推荐答案

您可能想要使用 Lawnchair ,这是众所周知的,如Guido Tapia在您链接的问题中所提到的。

You might want to go with Lawnchair, which is quite well known, as mentioned by Guido Tapia in the question that you link to.

或者使用他的 picnet.data.DataManager 解决方案。

Either that, or use his picnet.data.DataManager solution.

另请参阅 persistence.js

这篇关于用于桥接IndexedDB和WebSQL的JavaScript库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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