MCPcopy
hub / github.com/sequelize/sequelize / firstTransaction

Function firstTransaction

test/integration/transaction.test.js:148–157  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

146 let secondTransactionGotNearCommit = false;
147
148 const firstTransaction = async () => {
149 await this.sequelize.transaction({ isolationLevel }, async t => {
150 await Dots.update({ color: 'red' }, {
151 where: { color: 'green' },
152 transaction: t
153 });
154 await delay(1500);
155 firstTransactionGotNearCommit = true;
156 });
157 };
158
159 const secondTransaction = async () => {
160 await delay(500);

Callers 1

Calls 2

transactionMethod · 0.80
updateMethod · 0.45

Tested by

no test coverage detected