Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
sorry to not follow the issue template but it's more a feature request than an issue. Also I'm in a BIG rush actually.
We currently have our boss doing a demo in 1h of our new product which is based on TypeORM with Nest, and it got crazy because we are in a multi-tenant architecture, and TypeORM doesn't support to dynamically change the schema on a per-request basis. Which is something we can't live without. We can't afford to strip away TypeORM to switch to another one with schema support (cause it'll probably makes me fired). As a side note, we use the query methods (find, findAll, etc), not the query builder.
Any "easy" or atleast, possible, solution to this guys?
I've seen this commit, which looks interesting IMO: nurikabe@fa8270e
This issue is related too: #3067
Can someone points me toward the right direction please? I could move every query method to an actual SQL query but it will take super long time to do so...
Thanks in advance, please excuse my lack of issue template.
bump. it would be great to reuse the connection and just switch the schema when using the entity manager for multi-tenant situations. Having to resort to the QueryBuilder-style just to set the schema would increase complexity and bloat the code.
Something like this would be great: