Comments (5)
Hi @marcinmigda-talentalpha! Thanks for your question, sorry for the delay in responding. There aren't currently any plans to do this, but I'm open to the idea. I suppose the limitation is that the SQL in the recorders depends on the schema. How would you like support for an alternative schema to work? Did you want something in particular from an alternative scheme? Is there something you would like to do that you currently can't? Just curious about your thoughts, experience, and requirements. Hope to hear more about this from you soon!
from eventsourcing.
I believe the question was around using a POSTGRES schema (as a namespace concept) other than public
(the default one) not in changing how event data is stored.
I was wondering the same today, as the db instance we are using is also used for something other than event store, and we would like to keep the two sets of tables segregated.
from eventsourcing.
Thank you for clarifying this. How would you like this to work? Specify the schema in an environment variable, and then have the tables created in that schema? Would that work? Sorry for my misunderstanding.
from eventsourcing.
I'm still quite new to using this library so I'm still learning the entry points for its functionality, but that being said having an environment variable seems like a reasonable choice to indicate which Schema the tables should be created in.
from eventsourcing.
@marcinmigda-talentalpha @teves-castro
I added this today. Thanks for raising and explaining. Sorry for delay. Let me know what you think?
"The optional environment variable POSTGRES_SCHEMA may be used to configure the table names used by the recorders to be qualified with a schema name. Setting this will create tables in a specific PostgreSQL schema. See the PostgreSQL Schemas documentation for more information about creating and using PostgreSQL schemas safely."
See docs:
https://eventsourcing.readthedocs.io/en/latest/topics/persistence.html#postgresql
Changeset:
0967e02
from eventsourcing.
Related Issues (20)
- Postgres does not accept idle_in_transaction_session_timeout as float string HOT 2
- Investigating potential problem when saving events for multiple aggregates HOT 2
- Custom Postgres schema breaks followers HOT 3
- Aggregate Not Found when AGGREGATE_CACHE_MAXSIZE not set HOT 13
- monotonic HOT 2
- support postgresql as alias for postgres persistence module HOT 3
- Support for rabbitmq HOT 10
- Best way to befriend sqlalchemy database and eventsourcing HOT 6
- Is it necessary to re-hydrate an aggregate to check it exists in a repository? HOT 4
- Suggested approach to Entities in 9.x? HOT 1
- Slack invite not working HOT 3
- Snapshot in aggregate8 example won't work for custom object in aggregate HOT 8
- `Follower(Application)` does not call `self.construct_mapper()` HOT 5
- Additional examples HOT 2
- How to set aggregate/application state for tests? HOT 1
- Automatic snapshotting not work for functional style aggregate HOT 8
- Use ProcessApplication build materialized view HOT 2
- Question: How to best integrate with token based authentication for Postgres HOT 16
- Question: how to avoid performance bottleneck with huge number of events HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eventsourcing.