Skip to content

Instantly share code, notes, and snippets.

@mickhansen
Created November 10, 2015 17:15
Show Gist options
  • Save mickhansen/f7dccb51955224a3c537 to your computer and use it in GitHub Desktop.
Save mickhansen/f7dccb51955224a3c537 to your computer and use it in GitHub Desktop.
sequelize.getConnection(function (connection) {
// do stuff
return new Promise(); // connection automatically released back to pool when promise returned from callback is resolved or rejected
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment