Custom decoding of an integer with pgx/v5 #1560
Answered
by
jackc
sebastianwestberg
asked this question in
Q&A
-
Hi! I've tried to implement multiple interfaces in order to create a custom decoder for one of my integer fields, without any luck.
I can't get the panic to trigger.
Can I please get some guidance? Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Answered by
jackc
Mar 27, 2023
Replies: 1 comment 1 reply
-
I think implementing |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
sebastianwestberg
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think implementing
pgtype.Int64Scanner
andpgtype.Int64Valuer
will do what you want.