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

Method rebind

src/db/queries.ts:306–310  ·  view source on GitHub ↗

* Swap the underlying connection in place. Used by pool workers' * connection recycling (plan §7a.6, writes-under-readers): a long-lived * read connection pins WAL checkpoint progress, and the deep WAL that * accumulates behind it taxes every main-thread B-tree page operation * (deletes

(db: SqliteDatabase)

Source from the content-addressed store, hash-verified

304 * lazily on next use.
305 */
306 rebind(db: SqliteDatabase): void {
307 this.db = db;
308 this.stmts = {};
309 this.batchStmts.clear();
310 }
311
312 /** Set the normalized project-name tokens used to down-weight non-discriminative
313 * query words in path scoring (#720). Called once when the project opens. */

Callers 1

resolver-worker.tsFile · 0.80

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected