()
| 196 | |
| 197 | /** Ensure no active transaction (rollback if any) */ |
| 198 | export 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) */ |
| 209 | export function resetDBCache(): void { |
no test coverage detected