Kyrre Gjerstad
Explore posts from serversDTDrizzle Team
•Created by Kyrre Gjerstad on 3/22/2024 in #help
mysql2 driver in edge middleware
Hi all,
is it possible to use the mysql2 driver in NextJs edge middleware?
I was previously running
import { drizzle } from 'drizzle-orm/planetscale-serverless';
which worked great, but i'm now migrating away from planetscale. The problem i'm facing is that when i switch to import { drizzle } from 'drizzle-orm/mysql2';
i get the following error in NextJs:
edgeFunction is not a function
which suggest that something is relying on a node api somewhere.
I'm currently running my db on AWS RDS. Any suggestions how to deal with this?
Thanks!6 replies
DTDrizzle Team
•Created by Kyrre Gjerstad on 1/29/2024 in #help
Cannot drop index 'PRIMARY' - planetscale
when I try to push to planetscale I get the error:
In order to successfully push I need to drop all the tables before pushing. I'm using the
Foreign key constraints
Beta at planetscale. When running push with the verbose flag, i see the following:
I'm running drizzle-kit": 0.20.13
.
my tables:
4 replies