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