Grow the WAL: with autocheckpoint off, every commit appends and nothing folds back.
(db: DatabaseConnection, rows: number)
| 33 | |
| 34 | /** Grow the WAL: with autocheckpoint off, every commit appends and nothing folds back. */ |
| 35 | function writeRows(db: DatabaseConnection, rows: number): void { |
| 36 | const raw = db.getDb(); |
| 37 | raw.exec('CREATE TABLE IF NOT EXISTS t (id INTEGER PRIMARY KEY, blob TEXT)'); |
| 38 | const stmt = raw.prepare('INSERT INTO t (blob) VALUES (?)'); |
| 39 | for (let i = 0; i < rows; i++) stmt.run('x'.repeat(4096)); |
| 40 | } |
| 41 | |
| 42 | describe('resolveWalValveMb', () => { |
| 43 | it('honors a positive numeric override and falls back otherwise', () => { |
no test coverage detected