Skip to content
Discussion options

You must be logged in to vote

How to scan json_agg array result into slice. It worked before but not sure how to do this with pgxV5?
Is this not yet possible or i need to use custom type that implements Scan and Value?

Yeah, you'll need to implement Scan method. Its one of the issues with pgx. I didn't find a good way to get a raw bytes from the driver. The driver by default always returns map[string]interface{}.

Replies: 1 comment 1 reply

Comment options

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

Answer selected by dankobg
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