* Enter bulk-ref mode for the batched resolution loop — see * BULK_REF_INDEX_NAMES. MUST be paired with endBulkRefLoad(); a crash * inside the window heals on the next open (schema.sql re-applies * CREATE INDEX IF NOT EXISTS).
()
| 281 | * CREATE INDEX IF NOT EXISTS). |
| 282 | */ |
| 283 | beginBulkRefLoad(): void { |
| 284 | for (const idx of DatabaseConnection.BULK_REF_INDEX_NAMES) { |
| 285 | this.db.exec(`DROP INDEX IF EXISTS ${idx}`); |
| 286 | } |
| 287 | } |
| 288 | |
| 289 | /** Leave bulk-ref mode: recreate each index in one scan (yield between). */ |
| 290 | async endBulkRefLoad(): Promise<void> { |
no test coverage detected