Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accept promises in the migration interface #19

Open
thalesmello opened this issue Jun 11, 2017 · 0 comments
Open

Accept promises in the migration interface #19

thalesmello opened this issue Jun 11, 2017 · 0 comments

Comments

@thalesmello
Copy link
Contributor

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')
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant