I am in the R&D phase of developing an application, with the following key requirements:
I cannot use web storage due to quota limitations - I am comparing SQLite and Indexed DB.
I am confused in the selection of API. Is there some other alternative to SQLite or support of Indexed DB expected on Safari?
IndexedDB is provided by the browser and thus does not need internet for performing CRUD (Create Read Update Delete) operations.
SQLite can be used in Cordova applications to store a large number of records, including images, on mobile devices. In a Cordova application, you can use SQLite to store a large amount of information that can be accessed offline on a device.
No, sqlite is only for local, embedded databases.
A good rule of thumb is to avoid using SQLite in situations where the same database will be accessed directly (without an intervening application server) and simultaneously from many computers over a network. SQLite will normally work fine as the database backend to a website.
I think abandoning IndexedDB would be a bad idea, because it's probably the format of the future, so Safari might stop supporting WebSQL.
It appears there are various JavaScript solutions to bridge the gap between the two - saving in whichever is available on the user's browser: JavaScript Library to Bridge IndexedDB and WebSQL I think this is probably your best solution.
First of all, the one that has been deprecated by W3C is WebSQL not SQLite
IndexedDB -
WebSQL -
SQLite -
If you want a quick tutorial on SQLite,
Storage of SQLite database using Android and Phonegap
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With