energistic
DTDrizzle Team
•Created by louis on 12/18/2023 in #help
Best way to seperate environments
Some people might do it in CI, but I’m okay with my workflow right now
5 replies
DTDrizzle Team
•Created by pedro77 on 12/19/2023 in #help
Can I use drizzle + mysql2 driver + middleware.ts (next.js)?
It said mysql2 on that page, so I think that’s a yes
4 replies
DTDrizzle Team
•Created by louis on 12/18/2023 in #help
Best way to seperate environments
@Louis I suggest using env variables with dot-env: https://www.npmjs.com/package/dotenv#-deploying
I also have a script that creates a local proxy to my prod db, then I run my migrations locally against the prod db
5 replies
DTDrizzle Team
•Created by pedro77 on 12/19/2023 in #help
Can I use drizzle + mysql2 driver + middleware.ts (next.js)?
You can use that driver: https://orm.drizzle.team/docs/quick-mysql/planetscale
and edge is possible too: https://orm.drizzle.team/docs/perf-serverless
4 replies
DTDrizzle Team
•Created by pdina on 5/18/2023 in #help
Create GIN index in Postgres
I wrote a little script to remove the quotes and add a GIN index
10 replies
DTDrizzle Team
•Created by Bardia on 12/11/2023 in #help
Migration timing out in Next.js Route
here's my migration file:
5 replies
DTDrizzle Team
•Created by Wabathur on 12/10/2023 in #help
[pg] How do I make subquery in select()?
5 replies
DTDrizzle Team
•Created by Bardia on 12/11/2023 in #help
Migration timing out in Next.js Route
I find my migrations succeed but never really end. I added a
process.exit(0)
at the end and that seems to work. I also close the db connection but not sure if that's really necessary5 replies