* What a failed call throws: the error itself, or — for a "disk I/O error" * on a WSL index that Windows CodeGraph shares — the actionable rewrite * (#995). Every open runs its PRAGMAs and first reads through the methods * below, and so does every later query. `iterate()` is left raw: a
(err: unknown)
| 91 | * session reads through `get`/`all` long before it reaches one. |
| 92 | */ |
| 93 | private failure(err: unknown): unknown { |
| 94 | return toWslSharedIndexError(err, this._dbPath) ?? err; |
| 95 | } |
| 96 | |
| 97 | get inTransaction(): boolean | undefined { |
| 98 | return this._db.isTransaction; |
no test coverage detected