Is there a way to retrieve raw results as map or some kind of iterator? #1207
Unanswered
cemremengu
asked this question in
Q&A
Replies: 0 comments
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.
-
This may have come up before but couldn't find an answer so far. Sorry if I am wasting your time.
I have a table where users create custom columns so I don't know the column names in advance to create or generate a struct for that table. So I would like to get records in a dynamically mapped way.
When I try to bind to a map, I get an error saying
obj type should be *Type, *[]Type, or *[]*Type but was "*map[string]interface {}"
Is there a way to achieve this?
Beta Was this translation helpful? Give feedback.
All reactions