Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support multiple in-memory databases #86

Merged
merged 2 commits into from
Jul 16, 2020
Merged

Conversation

tanner0101
Copy link
Member

@tanner0101 tanner0101 commented Jul 16, 2020

Adds a new parameter identifier to SQLiteConfiguration.Storage.memory (#86, fixes #79).

This string uniquely identifies the in-memory database. Connections that use the same memory identifier share data.

let configuration = SQLiteConfiguration(storage: .memory(identifier: "foo"))

Using .memory without specifying an identifier will generate a random value. Only connections using that specific configuration will share data. This means multiple connection sources can now be initialized with separate configuration structs in the same process.

@tanner0101 tanner0101 added bug Something isn't working enhancement New feature or request semver-major Breaking changes labels Jul 16, 2020
@tanner0101 tanner0101 marked this pull request as ready for review July 16, 2020 22:38
@tanner0101 tanner0101 merged commit 442968e into master Jul 16, 2020
@tanner0101 tanner0101 deleted the tn-multiple-memory branch July 16, 2020 22:38
@tanner0101
Copy link
Member Author

These changes are now available in 4.0.0-rc.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request semver-major Breaking changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant