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

Method rebind

src/db/queries.ts:335–339  ·  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

333 * lazily on next use.
334 */
335 rebind(db: SqliteDatabase): void {
336 this.db = db;
337 this.stmts = {};
338 this.batchStmts.clear();
339 }
340
341 /** Set the normalized project-name tokens used to down-weight non-discriminative
342 * 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