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

Method transaction

src/db/index.ts:417–419  ·  view source on GitHub ↗

* Execute a function within a transaction

(fn: () => T)

Source from the content-addressed store, hash-verified

415 * Execute a function within a transaction
416 */
417 transaction<T>(fn: () => T): T {
418 return this.db.transaction(fn)();
419 }
420
421 /**
422 * Get database file size in bytes

Callers

nothing calls this directly

Calls 1

transactionMethod · 0.65

Tested by

no test coverage detected