Replies: 1 comment
-
Unless you are using the simple protocol, the arguments are not interpolated into the query text. The are passed to PostgreSQL as separate parameters. If you are using the simple protocol then there's no publicly available interface for that logic. The package that performs the sanitization but is private ( |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there a way to just format
sql string, args ...interface{}
into final query (as string or []byte)?I'm playing around with queries with
time.Time
andtime.Duration
arguments and want to inspect the final resultBeta Was this translation helpful? Give feedback.
All reactions