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

Commit ccd98b73 by Daniel Durante

Cleaned up query interface.

1 parent d05baa86
Showing with 1 additions and 2 deletions
......@@ -54,7 +54,7 @@ module.exports = (function() {
var showSchemasSql = self.QueryGenerator.showSchemasQuery()
self.sequelize.query(showSchemasSql, null, { raw: true }).success(function(schemaNames) {
self.emit('showAllSchemas', null)
emitter.emit('success', Utils._.flatten(Utils._.map(schemaNames, function(value){ return value.schema_name })))
emitter.emit('success', Utils._.flatten(Utils._.map(schemaNames, function(value){ return (!!value.schema_name ? value.schema_name : value) })))
}).error(function(err) {
self.emit('showAllSchemas', err)
emitter.emit('error', err)
......@@ -300,7 +300,6 @@ module.exports = (function() {
emitter.emit('sql', sql)
})
.on('sql', function(sql) {
console.log('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!