Setting triggers with drizzle

Hey, good day guys. I'm a web developer who recently picked up mysql and drizzle. Going through the drizzle docs now and I was wondering if there was a way I could set stored procedures and triggers in my sql database using drizzle?
3 Replies
evoshall
evoshall7mo ago
you can use the --custom flag to generate a blank SQL script that you can put stored procedures/triggers into https://orm.drizzle.team/kit-docs/commands#generate-migrations
Drizzle ORM - List of commands
Drizzle ORM is a lightweight and performant TypeScript ORM with developer experience in mind.
Keith
KeithOP7mo ago
Alright, I'll check it out. Thanks It worked, thanks mate
ashutosh_dev
ashutosh_dev2mo ago
How migration work with it?, if i change something in triggers does migration scripts picks it up.
Want results from more Discord servers?
Add your server