P
Prisma•6mo ago
Anonymous

Prisma extend can change db pointing to?

is there anyway change the prisma db? change under extend or new prisma, i need to for multitenant
2 Replies
Nurul
Nurul•6mo ago
Hey @kmj 👋 You can use datasourceUrl to programatically override the db being pointed to: https://www.prisma.io/docs/orm/reference/prisma-client-reference#datasourceurl
Prisma Client API | Prisma Documentation
API reference documentation for Prisma Client.
Anonymous
Anonymous•6mo ago
Hi @Nurul (Prisma) , i have tried that, but the datasourceUrl is just change the sql instance i pointing to, what i need is changing the different db in same instance
Want results from more Discord servers?
Add your server