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

Allow multiple namespaces types to be stored in the same NamespaceStore #1083

Merged
merged 12 commits into from
Feb 27, 2024

Conversation

MarinPostma
Copy link
Contributor

@MarinPostma MarinPostma commented Feb 26, 2024

This PR refactors sqld to allow the NamespaceStore to store different kinds of namespaces. For now this means only replica and primaries, but this paves the way to storing schema databases as well.

@Horusiath Horusiath mentioned this pull request Feb 26, 2024
@MarinPostma MarinPostma force-pushed the db-unify branch 4 times, most recently from 164af39 to 47eff78 Compare February 27, 2024 01:56
@MarinPostma MarinPostma changed the title wip Allow multiple namespaces types to be stored in the same NamespaceStore Feb 27, 2024
stores different kinds of databases int the same type, and multiplex the
connection type the same way.
- Namespace store is not generic over the Namespace anymore
- create method takes a config
- simplify loading namespaces
Namespace is not generic on db type anymore, but used the multiplexed
database types instead.
allows mapping the connection type, when wrapping it in database/mod.rs
@MarinPostma MarinPostma marked this pull request as ready for review February 27, 2024 10:22
@Horusiath Horusiath self-requested a review February 27, 2024 12:53
@MarinPostma MarinPostma added this pull request to the merge queue Feb 27, 2024
Merged via the queue into main with commit c63fe26 Feb 27, 2024
16 checks passed
@MarinPostma MarinPostma deleted the db-unify branch February 27, 2024 13:35
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.

2 participants