不要怂,就是干,撸起袖子干!

Commit cb7adce6 by Meg Sharkey

removed method

1 parent 80f5c3bf
Showing with 3 additions and 6 deletions
......@@ -20,10 +20,6 @@ module.exports = (function() {
return this
}
Query.prototype.sql_logging = function(fct) {
this.on('sql', fct)
return this
}
return Query
})()
......@@ -212,7 +212,7 @@ module.exports = (function() {
self.emit('rawSelect', err)
emitter.emit('failure', err)
})
.sql_logging(function(sql) {
qry.on('sql', function(sql) {
emitter.emit('sql', sql)
})
}).run()
......@@ -247,7 +247,8 @@ module.exports = (function() {
options.error && options.error(err)
self.emit(methodName, err)
emitter.emit('failure', err)
}).sql_logging(function(sql) {
})
query.on('sql', function(sql) {
emitter.emit('sql', sql)
})
}).run()
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!