-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add more helpers #144
Comments
How it is proposed to scan |
That was a bug. 🐞 Updated description. |
Hello. Does anyone work on this? |
@hIMEI29A nope |
i will dig. |
I'll take this! |
Q: How would you implement this set of functions?
My first guess for e.g. MapColumns would be iterating accross the columns of the
The problem with this is that we would need to do type switches on the type of the field in the struct and handle all variants:
This means having something like OR the code could just be generated (e.g. create setters using Sorry if it's a dumb question, I started looking into this for something I was working on, then it started looking a bit more verbose than I expected. |
Struct
from/tomap[string]interface{}
by field or column names.*sql.Row
into theStruct
by column names.The text was updated successfully, but these errors were encountered: