GithubHelp home page GithubHelp logo

Comments (5)

johnbywater avatar johnbywater commented on June 9, 2024

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.

teves-castro avatar teves-castro commented on June 9, 2024

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.

johnbywater avatar johnbywater commented on June 9, 2024

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.

teves-castro avatar teves-castro commented on June 9, 2024

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.

johnbywater avatar johnbywater commented on June 9, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.