MCPcopy
hub / github.com/colbymchenry/codegraph / transaction

Method transaction

src/db/index.ts:180–182  ·  view source on GitHub ↗

* Execute a function within a transaction

(fn: () => T)

Source from the content-addressed store, hash-verified

178 * Execute a function within a transaction
179 */
180 transaction<T>(fn: () => T): T {
181 return this.db.transaction(fn)();
182 }
183
184 /**
185 * Get database file size in bytes

Callers

nothing calls this directly

Calls 1

transactionMethod · 0.65

Tested by

no test coverage detected