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

Commit cb7adce6 by Meg Sharkey

removed method

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