added 2 commits
March 31, 2026 03:29Replace the default in-memory internal database with a temporary file-backed database using WAL mode. This fixes concurrent read/write locking errors that occur with named in-memory SQLite databases. The new is_temp_disk parameter on Database creates a temp file via tempfile.mkstemp, connects to it as a regular file-based database with WAL mode enabled, and cleans it up on close() and via atexit. https://claude.ai/code/session_01TteLrUjpDcARjnP1GMRqz2
simonw
changed the title
Add is_temp_disk option to Database for temp file-backed databases
Database(is_temp_file=True) option, used for internal database
simonw
changed the title
Database(is_temp_file=True) option, used for internal database
Database(is_temp_disk=True) option, used for internal database
simonw deleted the claude/temp-disk-database-nh3my branch
March 31, 2026 04:03