packages/flux-capacitor-sequelize/lib/createTransaction.js
function createTransaction (database, sequelizeTransaction) {
  const transaction = Object.assign(sequelizeTransaction, {
    getImplementation () {
      return sequelizeTransaction
    },

    perform (changeset) {
      return database.applyChangeset(changeset, { transaction })
    }
  })
  return transaction
}
function createTransaction (database, sequelizeTransaction) {
  const transaction = Object.assign(sequelizeTransaction, {
    getImplementation () {
      return sequelizeTransaction
    },

    perform (changeset) {
      return database.applyChangeset(changeset, { transaction })
    }
  })
  return transaction
}
function createTransaction ( database , sequelizeTransaction ) { const transaction = Object . assign ( sequelizeTransaction , { getImplementation ( ) { return sequelizeTransaction } , perform ( changeset ) { return database . applyChangeset ( changeset , { transaction } ) } } ) return transaction }
Extends sequelize transaction.

@param {Database} database
@param {Sequelize.Transaction} sequelizeTransaction
@return {Transaction}
Extends sequelize transaction .