An Apache Cordova adapter for PawSQLite
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Ben Ashton 2de1f94b84 Corrected ES6 exports 1 year ago
src Corrected ES6 exports 1 year ago
www Corrected ES6 exports 1 year ago
.gitignore Added webpack and built 1 year ago
.jshintrc Initial commit 1 year ago Updated README 1 year ago
package-lock.json Added webpack and built 1 year ago
package.json Corrected ES6 exports 1 year ago
plugin.xml Corrected js module namespace 1 year ago
webpack.config.js Corrected ES6 exports 1 year ago

PawSQLite Cordova Adapter

An Apache Cordova plugin and adapter for PawSQLite. This plugin uses its own native implemenation for acessing SQLite. Currently only Android is supported, but other platforms will be added when needed.


You must first install PawSQLite, and then install the plugin.

npm install -s git+
cordova plugin add git+


For more detailed usage, please see:

const PawSQLite = require("pawsqlite");

// PawSQLiteCordovaAdapter is automatically injected by cordova

const db = await"test", {
  adapter: 'PawSQLiteCordovaAdapter'

await db.sql(`
  CREATE TABLE contacts (
    contact_id INTEGER PRIMARY KEY,
    first_name TEXT NOT NULL,
    last_name TEXT NOT NULL

const transaction = db.transaction();

console.log(await db.sql("SELECT * FROM contacts"));

await transaction.sql(
  "INSERT INTO contacts (first_name, last_name) VALUES (?, ?)",

await transaction.commit();


Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.