DT
Drizzle Team•5mo ago
Eli

Get raw SQL string with parameters

I use drizzle to build up SQL strings - but I need to get the final SQL string. I can use query.toSQL() and then do a string-replace on ? with toSQL().sql | toSQL().params. My questions are: - is this the right way to do it? - if so, is it safe to do a simple text-replace on the question-marks?
2 Replies
Sillvva
Sillvva•5mo ago
Yes
Eli
Eli•5mo ago
Alright, thank you very much 🙂
Want results from more Discord servers?
Add your server