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