()
| 45 | } |
| 46 | |
| 47 | async function trans4() { |
| 48 | return await sequelize.transaction(async transaction => { |
| 49 | transaction.afterCommit(() => console.log('transaction complete')); |
| 50 | User.findAll( |
| 51 | { |
| 52 | transaction, |
| 53 | lock: { |
| 54 | level: transaction.LOCK.UPDATE, |
| 55 | of: User, |
| 56 | }, |
| 57 | } |
| 58 | ); |
| 59 | return 1; |
| 60 | }); |
| 61 | } |
| 62 | |
| 63 | async function transact() { |
| 64 | const t = await sequelize.transaction({ |
nothing calls this directly
no test coverage detected