MCPcopy
hub / github.com/codedogQBY/ReadAny / ensureNoTransaction

Function ensureNoTransaction

packages/core/src/db/db-core.ts:198–206  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

196
197/** Ensure no active transaction (rollback if any) */
198export async function ensureNoTransaction(): Promise<void> {
199 if (db) {
200 try {
201 await db.execute("ROLLBACK", []);
202 } catch {
203 // No active transaction, ignore
204 }
205 }
206}
207
208/** Reset the DB cache without closing (for use after external file replacement) */
209export function resetDBCache(): void {

Callers 2

collectChangesFunction · 0.85
applyChangesFunction · 0.85

Calls 1

executeMethod · 0.65

Tested by

no test coverage detected