2
0
This commit is contained in:
Peter Feichtinger
2022-09-20 12:42:42 +02:00
committed by Jack Christensen
parent d7c7ddc594
commit 639fb28846
+2 -2
View File
@@ -12,8 +12,8 @@ import (
// //
// For example, the following two queries are equivalent: // For example, the following two queries are equivalent:
// //
// conn.Query(ctx, "select * from widgets where foo = @foo and bar = @bar", pgx.NamedArgs{"foo": 1, "bar": 2})) // conn.Query(ctx, "select * from widgets where foo = @foo and bar = @bar", pgx.NamedArgs{"foo": 1, "bar": 2})
// conn.Query(ctx, "select * from widgets where foo = $1 and bar = $2", 1, 2})) // conn.Query(ctx, "select * from widgets where foo = $1 and bar = $2", 1, 2)
type NamedArgs map[string]any type NamedArgs map[string]any
// RewriteQuery implements the QueryRewriter interface. // RewriteQuery implements the QueryRewriter interface.