Drizzle Kit + Planetscale example?
I was hoping there would be an example of how to integrate the two. Planetscales docs are just OK, so I'm wondering if anyone has done this before and would be willing to share some code,
4 Replies
It's similar to the config used for mysql2
here's my config file:
I use Remix and whenever I start the dev server, the migrations applies against the planetscale db.
Wow, that's pretty simple. Thanks for the example.
And you can use
push
alsoIf anyone comes across this in the future, you can easily create a connectionString by going to
settings -> passwords -> get connection strings
and in the dropdown select prisma
.
Then, for drizzle kit to work, replace ?sslaccept=strict
on the end of the string with ?ssl={"rejectUnauthorized":true}
Make sure to put in the correct password as well.