Multitenancy using schema #10821
Unanswered
trevster344
asked this question in
Q&A
Replies: 1 comment 2 replies
-
|
Do you check the existing template? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm attempting to implement multitenancy using the schema. Is there any way from middleware to override the base postgres connection for all modules forward? I see I can fork the EntityManager but I need this to apply in a way that all modules will be using the schema I choose. This is my preferred method of multitenancy with Postgres usually.
Update: I have found that modifying the schema property on the EntityManager from a loader appears to be working. Continuing experimentation. Seems to only affect the main entity manager which means every request is sharing it. Not a viable solution unfortunately.
Beta Was this translation helpful? Give feedback.
All reactions