Migrating EncodeBinary and DecodeBinary to pgxv5 #2300
Unanswered
GonzaloSaez
asked this question in
Q&A
Replies: 1 comment
-
There is an architectural change between v4 and v5. In v4, the value type was responsible for encoding and decoding types. In v5 the Codec is. There isn't a migration guide as such, but looking at the v5 implementation of a simpler type like float4 might be helpful. |
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
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
We are trying to migrate from pgxv4 to pgxv5 and we are hitting a roadblock when trying to migrate all code that relies on Encode and DecodeBinary implemented for certain go types. We would like to know if there's any guide to perform this migration? I've gone through the doc in pgtype but it's not entirely clear to me which interfaces have to be implemented. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions