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