Has anyone figured out a good way to have a multi-...
# orm-help
s
Has anyone figured out a good way to have a multi-tenant setup with Prisma? Scoping out Prisma as a replacement for TypeORM and have a bunch of tenant DBs that all share the same schema. Looking for a decent way to switch between the db's. I feel this is a common situation so hopefully someone's figured something out!
r
@Sabin Adams 👋 There’s no concrete multi-tenant support out of the box, but there’s a 3rd party library that you can check out: https://github.com/Errorname/prisma-multi-tenant
s
@Ryan I'd looked at that library, unfortunately it isn't very well up-kept it seems and has issues installing at the moment. I did however figure out a solution for my use-case that is working nicely. I appreciate the reply!
r
It would be great if you could create a small write-up of this for others to reference 🙂
s
Was actually just starting one! I'll post a sample repo with some helpful comments at some point to this thread
🙌 1
j
@Sabin Adams did you ever do a write up with your solution?