refactor: migrate from node-sqlite3-wasm to better-sqlite3

Replace all db.run(sql, [params]) calls with db.prepare(sql).run(...params)
across all source modules and test files. Also remove the node-sqlite3-wasm
import from tests/db.test.ts and update the type annotation accordingly.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-06 21:17:44 +02:00
co-authored by Claude Sonnet 4.6
parent 25d07a6bc4
commit e760853781
16 changed files with 154 additions and 751 deletions
@@ -1,4 +1,4 @@
import { Database } from 'node-sqlite3-wasm';
import Database from 'better-sqlite3';
export function migrate001(db: Database): void {
db.exec(`