Multiple Databases #2176
-
I have different PostgreSQL databases. But with Prisma2, I can apparently only use one database per app. Is there a way to use two or more databases in one node / next.js app with Prisma2? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
There is a plugin for multitenant https://github.com/Errorname/prisma-multi-tenant maintained @Errorname! |
Beta Was this translation helpful? Give feedback.
-
Hey @MarcelMalik currently Prisma doesn't support multiple DB's but you can create a Feature request for that here: https://github.com/prisma/prisma/issues/new?assignees=&labels=&template=feature_request.md&title= For the timebeing, you can use the above way that Sytten has suggested. |
Beta Was this translation helpful? Give feedback.
Hey @MarcelMalik currently Prisma doesn't support multiple DB's but you can create a Feature request for that here: https://github.com/prisma/prisma/issues/new?assignees=&labels=&template=feature_request.md&title=
For the timebeing, you can use the above way that Sytten has suggested.