P
Prisma7mo ago
zilla

[Neon] [Driver Adapters] Do we need DIRECT_URL if using Driver Adapters?

So I have been migrating Planetscale DB to Neon and I was wondering if we need to provide DIRECT_URL for migrations when using Diriver Adapters? I could not find that information here: https://www.prisma.io/docs/orm/overview/databases/neon#how-to-use-neons-serverless-driver-with-prisma-orm-preview I am checking "Pooled connection" check box when procuring the connection string. Based on this, https://www.prisma.io/docs/orm/overview/databases/neon#how-to-use-neons-serverless-driver-with-prisma-orm-preview, when we needed to use pooling with PgBouncer, we needed to provide DIRECT_URL. Also, as a side question, do we need to use relationMode = "prisma" with Neon?
2 Replies
jonfanz
jonfanz7mo ago
You don't need to use the prisma relationMode with Neon. I think you still need the direct URL for things like migrations to work.
zilla
zillaOP7mo ago
Thanks @Jon Harrell . Would be great if the Prisma documentation is updated to include this: https://www.prisma.io/docs/orm/overview/databases/neon#how-to-use-neons-serverless-driver-with-prisma-orm-preview
Want results from more Discord servers?
Add your server