Skip to content

Use memdb for ephemeral SQLite test databases#494

Merged
mtlynch merged 1 commit intomasterfrom
vfs-memdb
Apr 26, 2026
Merged

Use memdb for ephemeral SQLite test databases#494
mtlynch merged 1 commit intomasterfrom
vfs-memdb

Conversation

@mtlynch
Copy link
Copy Markdown
Owner

@mtlynch mtlynch commented Apr 26, 2026

Replace the shared-cache in-memory test database URI in store/test_sqlite with a named memdb database.

Create a unique memdb database for each helper invocation and open it with a file URI that uses vfs=memdb. This keeps the helper API parameterless while following the upstream guidance cited in the code comment to avoid shared-cache in-memory databases for this test setup.

Replace the shared-cache in-memory test database URI in store/test_sqlite with a named memdb database.

Create a unique memdb database for each helper invocation and open it with a file URI that uses vfs=memdb. This keeps the helper API parameterless while following the upstream guidance cited in the code comment to avoid shared-cache in-memory databases for this test setup.
@mtlynch mtlynch enabled auto-merge April 26, 2026 19:58
@mtlynch mtlynch merged commit af55501 into master Apr 26, 2026
9 checks passed
@mtlynch mtlynch deleted the vfs-memdb branch April 26, 2026 20:00
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 26, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant