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

Method transaction

src/db/index.ts:450–452  ·  view source on GitHub ↗

* Execute a function within a transaction

(fn: () => T)

Source from the content-addressed store, hash-verified

448 * Execute a function within a transaction
449 */
450 transaction<T>(fn: () => T): T {
451 return this.db.transaction(fn)();
452 }
453
454 /**
455 * Get database file size in bytes

Callers

nothing calls this directly

Calls 1

transactionMethod · 0.65

Tested by

no test coverage detected