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

Add Multi-tenancy support to allow switching between PostgreSQL databases dynamically #382

Open
subhashb opened this issue Apr 19, 2023 · 0 comments · Fixed by #383
Open
Assignees

Comments

@subhashb
Copy link
Contributor

Allow schema to be dynamically specified when a domain context is activated.

The current code generates repositories dynamically and caches for performance optimization. We will need to allow devs to specify they are using a multi-tenancy-based approach to connecting to the database and the new database connection information.

In the naive approach, we will use a flag "MULTITENANCY" passed when initializing the domain context as an indicator, followed by explicitly modifying the database connection string.

This can be improved upon—ideas to be generated.

@subhashb subhashb self-assigned this Apr 19, 2023
@subhashb subhashb linked a pull request Apr 19, 2023 that will close this issue
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 a pull request may close this issue.

1 participant