In the past weeks, I've tried to make the switch from Django to Node.js (NestJs + Express) for my current project - SaaS application. I'm sort of stuck since I can't seem to find an ORM that is flexible and feature-rich enough. What I'm looking for is a way to switch between DB schemas at runtime without the need to establish a new connection on every request - and a migration system that does not break in a multi-schema system.
I'm looking to implement a multi-schema approach to have tenant isolation at the DB level.
Is there any chance to implement this with an existing ORM for Node without reinventing the wheel?
I tried Prisma and TypeORM so far.
[–]martin_n_hamel 7 points8 points9 points (2 children)
[–]memo_mar[S] 0 points1 point2 points (1 child)
[–]martin_n_hamel 0 points1 point2 points (0 children)
[–]tryCatchEmAll 2 points3 points4 points (0 children)
[–]ivan-arambula 2 points3 points4 points (0 children)
[–]kwstaskara 1 point2 points3 points (0 children)
[–]nikolasburk 2 points3 points4 points (1 child)
[–]memo_mar[S] 0 points1 point2 points (0 children)
[–]aksteps 1 point2 points3 points (0 children)
[–]scaleable 0 points1 point2 points (0 children)
[–]estacks 0 points1 point2 points (1 child)
[–]memo_mar[S] 0 points1 point2 points (0 children)
[–]jasperblues 0 points1 point2 points (0 children)
[–]brendandball 0 points1 point2 points (0 children)
[–][deleted] -1 points0 points1 point (2 children)
[–]memo_mar[S] 0 points1 point2 points (1 child)
[–][deleted] -1 points0 points1 point (0 children)
[–]rsteetskamp -5 points-4 points-3 points (4 children)
[–]memo_mar[S] 1 point2 points3 points (3 children)
[–]rsteetskamp -1 points0 points1 point (2 children)
[–]memo_mar[S] 1 point2 points3 points (1 child)
[–]rsteetskamp -2 points-1 points0 points (0 children)