Hayato
DTDrizzle Team
•Created by Raiyan on 6/12/2023 in #help
Planetscale migration error
Here is my github, if you need it.
https://github.com/hayato94087/nextjs-planetscale-drizzle-20230609-test
5 replies
DTDrizzle Team
•Created by Raiyan on 6/12/2023 in #help
Planetscale migration error
Problem is that you did not put
--> statement-breakpoint
between SQL statements.
For example, not this.
this works.
In order to geneerate --> statement-breakpoint
when you execute generate
command, you need to add breakpoints: true
, in your drizzle.config.ts
.
Here is my command.
If you run generate command, you should have sql with --> statement-breakpoint
5 replies
DTDrizzle Team
•Created by Hayato on 6/8/2023 in #help
Relational queries (PlanetScale)
@Dan Kochetov
Thank you for your response.
I have tried using relational queries with PlanetScale, and it worked!!! 🙂
I created a GitHub repository for anyone who might have the same questions regarding the use of relational queries with PlanetScale.
https://github.com/hayato94087/nextjs-planetscale-drizzle-20230609-test
The main problem I encountered was forgetting to include {schema} as a parameter in drizzle.
Thank you for your time.
9 replies
DTDrizzle Team
•Created by Hayato on 6/8/2023 in #help
Relational queries (PlanetScale)
Hello, thank you for your response.
I've examined the link you provided, and it appears to be primarily concerned with output formatting.
From what I understand, currently, Drizzle requires an additional step to produce user-friendly outputs in MySQL compared to Prisma.
I'm currently using Vercel at the edge and specifically targeting the Tokyo region, hence I've been seeking a suitable database for this setup. PlanetScale, with its Tokyo region availability, was appealing to me. However, considering the support for relational queries, I'm also exploring PostgreSQL databases like Supabase, which likewise offers a Tokyo region.
I appreciate your assistance in clarifying this situation.
9 replies