sanitize -> escape
This commit is contained in:
parent
1b63208266
commit
3312fa7923
|
@ -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;
|
||||
|
|
|
@ -18,4 +18,5 @@ function create(opts) {
|
|||
}
|
||||
|
||||
module.exports.sanitize = sqlite3.sanitize;
|
||||
module.exports.escape = sqlite3.escape;
|
||||
module.exports.create = create;
|
||||
|
|
|
@ -13,4 +13,5 @@ function create(opts) {
|
|||
}
|
||||
|
||||
module.exports.sanitize = sqlite3.sanitize;
|
||||
module.exports.escape = sqlite3.escape;
|
||||
module.exports.create = create;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue