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

Method failure

src/db/sqlite-adapter.ts:93–95  ·  view source on GitHub ↗

* 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)

Source from the content-addressed store, hash-verified

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;

Callers 2

prepareMethod · 0.95
execMethod · 0.95

Calls 1

toWslSharedIndexErrorFunction · 0.90

Tested by

no test coverage detected