简体   繁体   English

我可以在开发firefox Os应用程序中使用sqlite代替IndexedDb吗?

[英]can i use sqlite in developing firefox Os applications instead of IndexedDb?

Can I use sq-lite in developing Firefox Os applications instead of Indexed Db? 我可以在开发Firefox Os应用程序中使用sq-lite代替Indexed Db吗? I am trying to create a Firefox OS application. 我正在尝试创建Firefox OS应用程序。 I have no more idea about it. 我对此一无所知。

No. Only webkit-based browsers support Web SQL. 否。仅基于Webkit的浏览器支持Web SQL。 And there isn't a shim to use the Web SQL API on IndexedDB browsers, nor is there ever likely to be. 而且,没有在IndexedDB浏览器上使用Web SQL API的填充程序,也永远不可能。

Although IndexedDB isn't supported on any version of Safari, there is a shim allowing you to use the IndexedDB API on Web SQL browsers. 尽管Safari的任何版本均不支持IndexedDB,但有一个垫片可让您在Web SQL浏览器上使用IndexedDB API。 (Abeit I couldn't get it to work.) So, an IndexedDB solution should be portable to other modern environments. (尽管我无法使其正常工作。)因此,IndexedDB解决方案应可移植到其他现代环境中。

http://nparashuram.com/IndexedDBShim/ http://nparashuram.com/IndexedDBShim/

Firefox OS不支持SQLlite:您需要使用IndexedDB

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM