mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-07 23:37:35 +08:00
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:
@@ -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();
|
||||
} );
|
||||
|
||||
Reference in New Issue
Block a user