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

382 Add multi-tenancy support for Postgres #383

Merged
merged 1 commit into from
Apr 19, 2023

Conversation

subhashb
Copy link
Contributor

This PR addresses 382 and adds naive support for multi-tenancy with a "MULTITENANCY" flag.

Domain context can now be initialized witn arbitrary attributes. In our case, we will be setting MULTITENANCY to True.

Improvements to be done:

  • a better way to supply database info in a multi-tenancy use case
  • reset database connection to default after execution

This PR addresses 382 and adds naive support for multi-tenancy with a "MULTITENANCY" flag.

Domain context can now be initialized witn arbitrary attributes. In our case, we will
be setting MULTITENANCY to True.

Improvements to be done:
- a better way to supply database info in a multi-tenancy use case
- reset database connection to default after execution
@subhashb subhashb merged commit 81d6c87 into master Apr 19, 2023
@subhashb subhashb deleted the 382-iter1-multitenancy-for-postgres branch April 19, 2023 19:29
@subhashb subhashb restored the 382-iter1-multitenancy-for-postgres branch November 16, 2023 22:56
@subhashb subhashb deleted the 382-iter1-multitenancy-for-postgres branch November 16, 2023 23:55
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.

Add Multi-tenancy support to allow switching between PostgreSQL databases dynamically
1 participant