Skip to content

How to use my own date type with pgx #1742

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

You must be logged in to vote

pgtype.BinaryDecoder, pgtype.TextDecoder, pgtype.BinaryEncoder, and pgtype.TextEncoder are part of pgx v4. They are not part of v5. That's why they're not being called.

You probably want to implement pgtype.TextScanner.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by f9a
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