3 ms·
WebSQL is pretty much dead (which is unfortunate, and you should direct stern words towards Mozilla), so relying on that would be pretty risky.
by thomasfoster96 11y ago
WebSQL is pretty much dead (which is unfortunate, and you should direct stern words towards Mozilla), so relying on that would be pretty risky.
- T3RMINATED 11y agoi use https://github.com/kripken/sql.js/ https://github.com/kripken/sql.js/
- SunboX 11y agoJust use https://github.com/mozilla/localForage https://github.com/mozilla/localForage and be happy ... ;)
- fbender 11y agoThere's IndexedDB. Both Mozilla and Microsoft opposed on standardizing on a specific implementation of an SQL database (sqlite v2), and rightly so. There's loads of commentary/rationale on this issue on the web, so I won't re-iterate it here. iOS has IndexedDB since v8.0 though the implementation is poor. I don't know if they've fixed it in any 8.x release. However, you're (mostly) not using IndexedDB directly anyway but a storage library, which supports IndexedDB, WebSQL and maybe localstorage as a fallback (e.g. localForage[1] for a simple key-value DB). [1] https://mozilla.github.io/localForage/ https://mozilla.github.io/localForage/