Closed harrisoncramer closed 1 year ago
You're welcome and thanks :)
Not using parameterized queries wouldn't make any sense, and only bring downsides in my opinion. You can do it using sql.unsafe, but I wouldn't recommend it. I would think it's better to transform that log and replace the placeholders with the parameters instead if you absolutely need it.
Sounds good, thank you!
First off, thank you for the awesome package!
Is it possible to configure the SQL connection to enable more human readable logging? Right now, my PostgreSQL logs show a long list of parameters and a series of
$
signs where they will be injected into the query.However, this is hard to read, it ends up looking like this:
I've asked the same question on Reddit here and one user suggested that I stop using parameterized queries, is this possible with this library? Or is there another way to achieve this?