How to correctly use (*pgtype.Map)SQLScanner? #1936
Unanswered
vladsavostin
asked this question in
Q&A
Replies: 1 comment
-
Unfortunately, there is no simple way to bridge pgx's type system to database/sql without SQLScanner. See #1779, #1781, #1662, and #1458 for some previous discussions and partial solutions / workarounds. |
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
-
pgx lib has a nice examples with scaning into go slices, but them use
(*pgtype.Map)SQLScanner
. Standard libs like as database/sql and jmoiron/sqlx don't set this mapper before scanning, because this map and scanner are driver-specific.Beta Was this translation helpful? Give feedback.
All reactions