So, I have a reasonably complicated query which I am trying to debug, but for a simple example let's say I have something like this:
q := "SELECT id FROM users WHERE timestamp > ? AND timestamp < ?"
I will do a Query() on this the usual way, e.g.
db.Query(q, 1546300800,1561127488)
And I would like to log/println/whatever (for debugging) the interpolated query, to end up with
SELECT id FROM users WHERE timestamp > 1546300800 AND timestamp < 1561127488
Wondering if anyone has a trick for me here.