Skip to content

fix: refuse missing SQLite file unless --create-database - #145

Open
doresa0 wants to merge 1 commit into
0xMiden:mainfrom
doresa0:fix-refuse-missing-database-file
Open

doresa0 wants to merge 1 commit into
0xMiden:mainfrom
doresa0:fix-refuse-missing-database-file

Conversation

@doresa0

@doresa0 doresa0 commented Aug 9, 2026

Copy link
Copy Markdown

A wrong or missing --database-url used to silently create an empty SQLite file and reset seq from 1. Startup now fails if the file is absent, unless --create-database is set. :memory: is unchanged.

Closes #124

Wrong or missing --database-url paths were fail-open and silently created an empty DB that reset seq. Fail startup by default; require an explicit create flag for first-run. Leave :memory: unchanged.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fail-open database creation silently starts an empty DB

1 participant