* 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).
()
| 248 | * CREATE INDEX IF NOT EXISTS). |
| 249 | */ |
| 250 | beginBulkRefLoad(): void { |
| 251 | for (const idx of DatabaseConnection.BULK_REF_INDEX_NAMES) { |
| 252 | this.db.exec(`DROP INDEX IF EXISTS ${idx}`); |
| 253 | } |
| 254 | } |
| 255 | |
| 256 | /** Leave bulk-ref mode: recreate each index in one scan (yield between). */ |
| 257 | async endBulkRefLoad(): Promise<void> { |
no test coverage detected