Skip to content

fix: open sqlite inputs read-only - #64

Merged
katsut merged 1 commit into
mainfrom
fix/sqlite-readonly-open
Jul 4, 2026
Merged

fix: open sqlite inputs read-only#64
katsut merged 1 commit into
mainfrom
fix/sqlite-readonly-open

Conversation

@katsut

@katsut katsut commented Jul 4, 2026

Copy link
Copy Markdown
Owner

Closes #63

Reading a mistyped sqlite path created an empty database (rusqlite default flags include SQLITE_OPEN_CREATE) — found when a failed ocel-studio connector run left a 0-byte file that then broke the studio startup pick. Inputs now open with SQLITE_OPEN_READ_ONLY | NO_MUTEX; the write path keeps CREATE. Regression test asserts the missing-file read errors without creating anything.

🤖 Generated with Claude Code

rusqlite default flags include SQLITE_OPEN_CREATE, so reading a
mistyped path left a freshly created empty database behind (found
when a failed ocel-studio connector run polluted its workspace).
Inputs now open with SQLITE_OPEN_READ_ONLY; writes keep CREATE.

Closes #63
@katsut
katsut merged commit 60453c9 into main Jul 4, 2026
4 checks passed
@katsut
katsut deleted the fix/sqlite-readonly-open branch July 4, 2026 23:30
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.

bug: ocel convert creates an empty file when the sqlite input does not exist

1 participant