MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / transaction

Function transaction

packages/core/fumadb/src/adapters/prisma/query.ts:334–346  ·  view source on GitHub ↗
(run)

Source from the content-addressed store, hash-verified

332 });
333 },
334 async transaction(run) {
335 await init;
336
337 return prisma.$transaction((tx) =>
338 run(
339 fromPrisma(schema, {
340 ...config,
341 isTransaction: true,
342 prisma: tx,
343 }),
344 ),
345 );
346 },
347 });
348}

Callers

nothing calls this directly

Calls 2

fromPrismaFunction · 0.85
runFunction · 0.50

Tested by

no test coverage detected