Skip to content

refactor: remove SQLite in-memory database support - #113

Open
kkovaacs wants to merge 3 commits into
mainfrom
krisztian/sqlite-remove-in-memory-db
Open

refactor: remove SQLite in-memory database support#113
kkovaacs wants to merge 3 commits into
mainfrom
krisztian/sqlite-remove-in-memory-db

Conversation

@kkovaacs

@kkovaacs kkovaacs commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

As described in issue #112 defaulting to an in-memory database poses risks for anyone running the service.

This PR fixes that risk by:

  • removing the in-memory database option entirely (and fixing tests to use database files in temporary directories),
  • making the --database-url CLI option required, so that you cannot start the service without specifying where it should store its data.

Closes #112

@kkovaacs
kkovaacs marked this pull request as ready for review August 6, 2026 15:50
Comment on lines +96 to +101
if is_in_memory_url(&config.url) {
return Err(DatabaseError::Configuration(
"SQLite in-memory databases are not supported; provide a database file path"
.to_string(),
));
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure I would have gone so far :D

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.

Node runs without persistence by default (--database-url :memory:) and loses all notes silently

2 participants