P
Prisma6mo ago
Surabhi

Error validating datasource `db`

Hello, I am using 2 postgres dbs and have followed -https://www.prisma.io/docs/guides/multiple-databases guide to set them up. I am deploying on Railway. On running yarn dev I am getting the following error - Error validating datasource db: the URL must start with the protocol prisma:// or prisma+postgres:// Not sure what is amiss, please help!
How to use multiple databases in a single app | Prisma Documentation
Learn how to use multiple Prisma Clients in a single app to connect to multiple databases, handle migrations, and deploy your application to Vercel.
No description
6 Replies
Prisma AI Help
Prisma AI Help6mo ago
You selected the carefully hand-crafted route. A dev artisan will respond soon. Meanwhile, the #ask-ai channel awaits if you're curious!
Nurul
Nurul6mo ago
How are you generating the Prisma Client? Are you running npx prisma generate? Are you passing any additional flags in the generate command?
Surabhi
SurabhiOP6mo ago
"generate": "yarn prisma generate --schema ./prisma-app-database/schema.prisma", "generate-modules": "yarn prisma generate --schema ./prisma-modules-database/schema.prisma",
Surabhi
SurabhiOP6mo ago
No description
No description
Surabhi
SurabhiOP6mo ago
No description
No description
Surabhi
SurabhiOP5mo ago
Merging both schemas in single DB solved my error

Did you find this page helpful?