phonegap - sqlite or Indexed DB?

前端 未结 5 516
梦谈多话
梦谈多话 2020-12-28 18:04

I am web developer starting with phonegap. I need to create one app for iPhone, android and Windows Phone 8.
I need to store some data (too big for localStorage) local

5条回答
  •  旧巷少年郎
    2020-12-28 18:44

    IndexedDB -

    • It is incompatible with many types of popular 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 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
    • It is compatible with most versions of all popoular mobile OS such as iOS and Android

    If you want a quick tutorial on SQLite

    Storage of SQLite database using Android and Phonegap

提交回复
热议问题