queryCompiler and driverAdapter for local development
I am looking to make use of Prisma 6.11's new support for rust-free MySQL development through
queryCompiler and driverAdapter preview features.
In production we use PlanetScale for our database and deploy our application through CF workers and Vercel functions. For CF workers we need to use the rust-free edge client with the planetscale adapter. I have this mostly working, but I am trying to get parity with our local development environment which uses a MySQL db through docker.
I thought I would be able to swap in the MariaDB adapter, but that doesn't seem to be working with my local db. Queries don't seem to fail, but everything returns null. Curious if anyone has a similar setup that is working.3 Replies
You chose to debug with a human. They'll tinker with your query soon. If you get curious meanwhile, hop into
#ask-ai for a quick spin!Hm I think I made progress here, but running into an issue when using
prisma.$transaction which looks like a race condition :thinkingfast:
It seems that the planetscale adapter is working with cloudflare workers (locally through wrangler), but I am getting errors when trying to swap that to the MariaDB adapter for my local mysql DB.Do you mind creating a GitHub Issue with a minimal reproduction so that our team can have a look?
https://github.com/prisma/prisma/issues
GitHub
prisma/prisma
Next-generation ORM for Node.js & TypeScript | PostgreSQL, MySQL, MariaDB, SQL Server, SQLite, MongoDB and CockroachDB - prisma/prisma