Prisma v7 #672
|
Hi, I am currently using PlanetScale as a MySQL database, with Prisma ORM (v6) and an Express backend, hosted on Render. This setup has worked reliably so far, following the recommended approach from your documentation. Now I am planning to upgrade to Prisma v7. According to the Prisma adapter documentation, Prisma 7 requires using a “driver adapter” when connecting to a database. However, I am not sure whether this requirement also applies when using PlanetScale — especially given that I currently do not use the PlanetScale serverless driver, but a standard TCP connection via a connection string (e.g. mysql://...@aws.connect.psdb.cloud/...). My questions are: With Prisma v7 and PlanetScale (non-serverless, TCP/MySQL) + Express (on Render), what is the recommended setup? Do I need to use a driver adapter (and if yes — which one) when connecting via standard MySQL/TCP, or is the “classic” approach (url in schema.prisma + standard Prisma Client) still valid for PlanetScale? If adapter usage is required, do you have an example of a working prisma.config.ts (or TypeScript/JavaScript setup) in this context? Thanks in advance for your help! Best regards, |
Replies: 1 comment 6 replies
|
Hi @michaelvdveer, Using the standard |
Hi @michaelvdveer,
Using the standard
mariadbadapter should work well here: https://www.prisma.io/docs/orm/overview/databases/database-drivers#database-driver-adapters