MCPcopy
hub / github.com/kysely-org/kysely / executeThread

Function executeThread

test/node/src/transaction.test.ts:240–249  ·  view source on GitHub ↗
(id: number, fails: boolean)

Source from the content-addressed store, hash-verified

238 }
239
240 async function executeThread(id: number, fails: boolean): Promise<void> {
241 await ctx.db.transaction().execute(async (trx) => {
242 await insertPerson(trx, id)
243 await insertPet(trx, id)
244
245 if (fails) {
246 throw new Error()
247 }
248 })
249 }
250 })
251
252 it('should retain the full stack trace', async () => {

Callers 1

Calls 4

insertPersonFunction · 0.85
insertPetFunction · 0.85
executeMethod · 0.65
transactionMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…