Prisma3mo ago

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
Nurul3mo 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.
kmj2mo 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