Merge pull request #16534 from jklimke/add_options_to_unmanaged_transaction_call_for_sequelize

Add options to unmanaged transaction call for sequelize
This commit is contained in:
Nathan Shively-Sanders
2017-06-01 15:31:41 -07:00
committed by GitHub
4 changed files with 26 additions and 2 deletions

View File

@@ -1626,6 +1626,18 @@ s.transaction().then( function( t ) {
} );
s.transaction({
isolationLevel: s.Transaction.ISOLATION_LEVELS.READ_COMMITTED
}).then(function(t2) {
return User.find({
where: {
username: 'jan'
},
lock: t2.LOCK.UPDATE,
transaction: t2
});
});
s.transaction( function() {
return Bluebird.resolve();
} );