commanded / eventstore

Event store using PostgreSQL for persistence
MIT License
1.06k stars 146 forks source link

Runtime event store configuration #217

Closed slashdotdash closed 4 years ago

slashdotdash commented 4 years ago

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.