MCPcopy
hub / github.com/sequelize/sequelize / trans3

Function trans3

types/test/transaction.ts:34–45  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

32}
33
34async function trans3() {
35 return await sequelize.transaction(async transaction => {
36 transaction.afterCommit(() => console.log('transaction complete'));
37 User.findAll(
38 {
39 transaction,
40 lock: true,
41 }
42 );
43 return 1;
44 });
45}
46
47async function trans4() {
48 return await sequelize.transaction(async transaction => {

Callers

nothing calls this directly

Calls 4

transactionMethod · 0.80
afterCommitMethod · 0.80
logMethod · 0.80
findAllMethod · 0.80

Tested by

no test coverage detected