What database does PhoneGap use and what is the size limit?

后端 未结 3 944
借酒劲吻你
借酒劲吻你 2020-12-07 09:22

I wrote an HTML5 database that abstracts localStorage, indexedDB, and WebSQL. Using straight HTML5 my database options look like this:

  • IE10 -
3条回答
  •  盖世英雄少女心
    2020-12-07 09:54

    IndexedDB -

    • It is incompatible with many types of mobile OS and versions
    • It is only compatible with very specific versions of mobile OS
    • Developers cannot use SQL with IndexedDB. SQL statements can be used on SQLite and WebSQL
    • Most developers actively avoid using IndexedDB as much as they can

    WebSQL -

    • It has been deprecated by W3C which means it is no longer maintained or developed
    • It requires another plugin called Polyfill to enable mobile applications to work with popular mobile OS such as Google Android and Apple iOS

    SQLite -

    • It received an award from Google
    • SQLite has its official website. IndexedDB and WebSQL do not
    • On Google, SQLite returns 1.8 million results. WebSQL returns a bit less than 700K results and IndexedDB returns 282K results.
    • Developer can use common SQL statements with SQLite.

    If you want a quick tutorial on SQLite

    Storage of SQLite database using Android and Phonegap

提交回复
热议问题