Skip to content

Commit

Permalink
Tried sql.js instead of sqlite3, not working
Browse files Browse the repository at this point in the history
  • Loading branch information
Oskar Eriksson committed May 10, 2016
1 parent 7559b39 commit 0cd0b89
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lib/sqlite/SQLiteDatabase.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
'use strict';

var sqlite3 = require('sqlite3');
var sqlite3 = require('sql.js');
var SQLiteResult = require('./SQLiteResult');

var READ_ONLY_ERROR = new Error(
'could not prepare statement (23 not authorized)');

function SQLiteDatabase(name) {
this._db = new sqlite3.Database(name);
this._db = new sqlite3.Database();
}

function runSelect(db, sql, args, cb) {
Expand Down Expand Up @@ -85,4 +85,4 @@ SQLiteDatabase.prototype.exec = function exec(queries, readOnly, callback) {
doNext();
};

module.exports = SQLiteDatabase;
module.exports = SQLiteDatabase;
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"immediate": "^3.2.2",
"noop-fn": "^1.0.0",
"pouchdb-collections": "^1.0.1",
"sqlite3": "^3.1.3",
"sql.js": "^0.3.2",
"tiny-queue": "^0.2.1"
},
"devDependencies": {
Expand Down

0 comments on commit 0cd0b89

Please sign in to comment.