MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / runInTransaction

Method runInTransaction

src/db/queries.ts:886–888  ·  view source on GitHub ↗

* Run `fn` as one transaction. The write helpers called inside join it * rather than committing on their own, so a crash part-way leaves none of * `fn`'s writes behind.

(fn: () => T)

Source from the content-addressed store, hash-verified

884 * `fn`'s writes behind.
885 */
886 runInTransaction<T>(fn: () => T): T {
887 return this.db.transaction(fn)();
888 }
889
890 /**
891 * Store one file's whole extraction bundle — nodes, edges, unresolved refs,

Callers 1

storeExtractionResultMethod · 0.80

Calls 1

transactionMethod · 0.65

Tested by

no test coverage detected