node-redshift icon indicating copy to clipboard operation
node-redshift copied to clipboard

Accept promises in the migration interface

Open thalesmello opened this issue 8 years ago • 0 comments

I think it would be nice if instead of

exports.up = function(next) {
  // something
  next();
};

It would be nice to write

exports.up = function() {
  return query('Something')
};

It would even allow as to use async functions in the queries, making it even nicer

exports.up = async function() {
  await query('something')
};

thalesmello avatar Jun 11 '17 21:06 thalesmello