Skip to content

Fix default in-memory pool isolation and add shared-memory pools#49

Merged
ryanfowler merged 1 commit into
mainfrom
fix-inmemory-pool-defaults
May 27, 2026
Merged

Fix default in-memory pool isolation and add shared-memory pools#49
ryanfowler merged 1 commit into
mainfrom
fix-inmemory-pool-defaults

Conversation

@ryanfowler

Copy link
Copy Markdown
Owner

Summary

  • Default anonymous in-memory pools to a single connection so PoolBuilder::new().open() and path(":memory:") no longer round-robin across isolated databases.
  • Reject explicit multi-connection anonymous memory pools with a config error.
  • Add PoolBuilder::shared_memory(name) for intentional multi-connection shared in-memory databases using SQLite URI + shared-cache flags.
  • Update docs and AGENTS guidance to describe the new pool behavior and SQLite caveats.

Testing

  • Added regression coverage for default in-memory pools, explicit :memory: pools, config errors, and named shared-memory pools.
  • cargo test passed.
  • cargo fmt --all -- --check passed.
  • cargo clippy -- -D warnings passed.

@ryanfowler ryanfowler merged commit 613cdee into main May 27, 2026
2 checks passed
@ryanfowler ryanfowler deleted the fix-inmemory-pool-defaults branch May 27, 2026 05:22
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.

1 participant