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

Runtime event store configuration #217

Merged
merged 4 commits into from
Oct 18, 2020
Merged

Conversation

slashdotdash
Copy link
Member

Allow an event store to be entirely configured at runtime. This requires associating the runtime config with the event store name and looking it up when needed. The restrictions on requiring compile-time configuration have been removed.

This pull request also changes the SQL statements to include the Postgres schema in all database queries. Previously the Postgres search path was set to only include the event store schema when connecting to the database. This meant queries did not need to be prefixed with the schema. However to support shared database connection pools (#216) this approach is not appropriate since multiple event stores with different schemas need to share the same database connections.

- Lookup event store config at runtime.
- Include Postgres `schema` in all database queries.
@slashdotdash slashdotdash force-pushed the feature/schema-prefix branch from 946a518 to 75aceb3 Compare October 18, 2020 21:03
@slashdotdash slashdotdash merged commit c5b1902 into master Oct 18, 2020
@slashdotdash slashdotdash deleted the feature/schema-prefix branch October 18, 2020 21:27
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