Another way to query with parameters #1965
-
We know to make query with parameters, we write code like this: repo.Pgx.QueryRow(ctx, query, ...arg) So, there is another way to query with named parameter? Like
Thanks in advance |
Beta Was this translation helpful? Give feedback.
Answered by
jackc
Mar 26, 2024
Replies: 1 comment 1 reply
Answer selected by
marcopolooo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See https://pkg.go.dev/github.com/jackc/pgx/v5#NamedArgs.