Transactions

Sequelize supports two ways of using transactions:

  • Managed, One which will automatically commit or rollback the transaction based on the result of a promise chain and, (if CLS enabled) pass the transaction to all calls within the callback
  • Unmanaged, One which leaves committing, rolling back and passing the transaction to the userThe key difference is that the managed transaction uses a callback that expects a promise to be returned to it while the unmanaged transaction returns a promise.