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

Multi tenant dynamic connections #14

Open
Zyles opened this issue Jun 12, 2022 · 0 comments
Open

Multi tenant dynamic connections #14

Zyles opened this issue Jun 12, 2022 · 0 comments

Comments

@Zyles
Copy link

Zyles commented Jun 12, 2022

Is it possible to create multi tenant connections (1 DB per tenant) using this package?

I store my tenant connection details in a master database. So I need one master connection on boot.

When a request is made to the app, grabbing the tenant ID either from header or authenticated user and looking up the tenant connection details putting them in a map. Next request looks into the map for the connection details with tenant id as key.

But how would you create a connection dynamically on every request like this?

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

No branches or pull requests

1 participant