-
Does anyone have a way to register specific types (like hstore) with stdlib? It's using pgtype.NewMap to register, but that one omits hstore (da-a, obviously, no OID if not created). Created some crazy code for this, but still no luck. |
Beta Was this translation helpful? Give feedback.
Answered by
jackc
Feb 15, 2023
Replies: 1 comment
-
You can use |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
uded
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use
stdlib.OptionAfterConnect
to register types. But when using database/sql + stdlib everything but the core types use the text format anyay, so I wouldn't expect it to be necessary.