Enables WebSQL functionality on top of a SQLite library. This repo is based on the WebSQL plugin of MSOpenTech. This plugin however supports async execution of sql where the WebSQL plugin of MSOpenTech is completely sync.
This plugin only supports the windows
platform, since most other platforms (ios
, android
, etc.) already support WebSQL natively.
You can also combine this plugin with the asynchronous IndexedDB plugin. Together, they enable IndexedDB support for the ios
, android
, windows
, and browser
platforms.
Install via the Cordova CLI.
For Cordova CLI 4.x, use the GIT URL syntax:
cordova plugin add https://github.com/Thinkwise/cordova-plugin-websql.git
For Cordova CLI 5.x, use the new npm syntax:
cordova plugin add cordova-plugin-websql-async
Or just install the asynchronous IndexedDB plugin, which automatically installs this plugin as a dependency.
The Windows and Windows Phone should be built separately. Note that the extra dashes are needed because of a bug in Apache Cordova.
cordova build windows --archs="x86 arm" -- --phone
cordova build windows -- --win