DT
Drizzle Team•7mo 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•7mo ago
Yes
Eli
EliOP•7mo ago
Alright, thank you very much 🙂
Want results from more Discord servers?
Add your server