Generate SQL statements with Drizzle
I wanna generate statements using Drizzle utilities - for example I have this
But how do I get the final SQL string from this?
In case that's important - what I wanna do is create some utils to automate trigger creation a bit - so I could generate trigger statements with Drizzle and then insert those into my migration files
sql`DROP TRIGGER IF EXISTS ${sql.identifier(triggerName)}`But how do I get the final SQL string from this?
db.run(...).getQuery() works but feels counter-intuitive - is that the best way to do that?In case that's important - what I wanna do is create some utils to automate trigger creation a bit - so I could generate trigger statements with Drizzle and then insert those into my migration files