Skip to content

Custom decoding of an integer with pgx/v5 #1560

Answered by jackc
sebastianwestberg asked this question in Q&A
Discussion options

You must be logged in to vote

I think implementing pgtype.Int64Scanner and pgtype.Int64Valuer will do what you want.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@sebastianwestberg
Comment options

Answer selected by sebastianwestberg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants