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
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-migrationsDrizzle ORM - List of commands
Drizzle ORM is a lightweight and performant TypeScript ORM with developer experience in mind.
Alright, I'll check it out. Thanks
It worked, thanks mate
How migration work with it?, if i change something in triggers does migration scripts picks it up.