Multitenancy using schema #10821
Unanswered
trevster344
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Do you check the existing template? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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