lundi 1 février 2016

Monaca implementation of SQLite - Native via Cordova or Deprecated Web SQL?

So basically like the title says, does Monaca implement local storage database as SQLite using the native implementation via Cordova's sqlite plugin or does it rely on the deprecated use of Web SQL standard?

The Monaca docs here:

http://ift.tt/1RWdslg

Show that it is SQLite using the deprecated Web SQL standard: window.openDatabase

I would assume Monaca would actually be using Cordova implementation of native SQLite via the plugin but I cannot find it in the plugin manager nor do the docs support the implementation syntax of: window.sqlitePlugin.openDatabase

Either way, what would be the best practice use of SQLite in an app? My fear is to use what is documented (I think deprecated) and then next version have to recode everything when the Cordova plugin implements SQLite in native already.

Thanks!

Aucun commentaire:

Enregistrer un commentaire