sanitize -> escape

This commit is contained in:
AJ ONeal 2015-07-24 14:47:11 -06:00
parent 1b63208266
commit 3312fa7923
4 changed files with 6 additions and 0 deletions

View File

@ -168,6 +168,7 @@ function create(opts) {
}
db.sanitize = require('./wrapper').sanitize;
db.escape = require('./wrapper').escape;
Object.keys(sqlite3real.Database.prototype).forEach(function (key) {
@ -201,4 +202,5 @@ function create(opts) {
module.exports.sanitize = require('./wrapper').sanitize;
module.exports.escape = require('./wrapper').escape;
module.exports.create = create;

View File

@ -18,4 +18,5 @@ function create(opts) {
}
module.exports.sanitize = sqlite3.sanitize;
module.exports.escape = sqlite3.escape;
module.exports.create = create;

View File

@ -13,4 +13,5 @@ function create(opts) {
}
module.exports.sanitize = sqlite3.sanitize;
module.exports.escape = sqlite3.escape;
module.exports.create = create;

View File

@ -25,6 +25,7 @@ function create(opts) {
db = dbs[opts.filename];
db.sanitize = sanitize;
db.escape = sanitize;
db.__key = opts.key;
return new Promise(function (resolve, reject) {
@ -58,5 +59,6 @@ function create(opts) {
}
module.exports.sanitize = sanitize;
module.exports.escape = sanitize;
module.exports.Database = sqlite3.Database;
module.exports.create = create;