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

DM-42489: Freeze APDB configuration in metadata table #42

Merged
merged 6 commits into from Feb 26, 2024

Conversation

andy-slac
Copy link
Collaborator

Both implementations now store parts of configuration in metadata
table (if that table exists in the schema) and reload that configuration
when instantiated.

Having `makeSchema` as an instance method causes too many issues,
as the state of the instance has to be reset after schema is created
or re-created. Now Apdb instances will be created only on populated
database schema. Base class method can be used to call `makeSchema`
and it will dispatch to a correct sub-class based on confguration
object type.

This change means that in-memory SQLite database cannot be used with
ApdbSql, in-memory database was only useful for testing.
Both implementations now store parts of configuration in metadata
table (if that table exists in the schema) and reload that configuration
when instantiated.
@andy-slac andy-slac merged commit 4b4d39a into main Feb 26, 2024
6 checks passed
@andy-slac andy-slac deleted the tickets/DM-42489 branch February 26, 2024 20:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants