timmy00979
PPrisma
•Created by timmy00979 on 5/3/2024 in #help-and-questions
Dynamically changing DB connection during runtime
Thank you!
5 replies
PPrisma
•Created by timmy00979 on 5/3/2024 in #help-and-questions
Dynamically changing DB connection during runtime
After spending all weekend looking into this, ^ that's what we gotta do, but the core of our issue is the library we pass Prisma to is a singleton. So nothing to do with Prisma! All of our microservices are currently using Prisma successfully for the connection switching.
We're going to extend the class to accept a function that returns a factory for generating the Prisma connection.
Writing software for our multi-tenent setup is always difficult unless we're on Rails lol.
5 replies