Javascript and Sqlite Javascript and Sqlite sqlite sqlite

Javascript and Sqlite


What you're looking for is a polyfill.

According to HTML5 Please, IndexedDB Polyfill implements the IndexedDB APIs over WebSQL. (The author of the polyfill also wrote an article on Mozilla Hacks about it.)

Facebook also as a polyfill. According to this pull request (to another project), Parashuram Narasimhan, the author of the first polyfill, seems to prefer the Facebook polyfill and is considering retiring his own project. (But then again, the Facebook repo looks like a one-time code dump and may not have any ongoing development.)


There are some points to note.

  1. Its a pure client side app.
  2. Not using webstorage (local and session)

The options left are using webSQL, IndexedDB, Third-party framework or custom solutions.

webSQL :- Support is limited to webkit browsers and w3c declared its dead. Browser support

IndexedDB :- Supports in IE10, chrome and Firefox. Browser support. Not supported in older versions of IE.

Third-party framework :- sequelsphere is a platform independent solution to address this issue. It is a RDMS written entirly in javascript and make use of webSQL or IndexedDB.

custom solutions :- Supporting both IndexedDB and WebSQL on a cross platform web app like this tutorial, we can create our custom cross-browser db solutions or may use lawnchair like json storage options.


We had same issue and got answered on this thread.

Lawnchair is a good choice if you need a single table DB - we had requirement of multiple tables, so have developed own wrapper.

Create a web app using HTML-5 and JavaScript, so that it can work for both desktop browser and iPad. Make it hybrid using PhoneGap for making it iPad's native app.