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
Load into map[string]interface{} #83
Comments
How do i use map array to load more than one row? |
just pass []map[string]interface{} to method Load. you can check how this is implemented in https://github.com/mailru/dbr |
I close this issue, since PR was declined. |
When you load values into map[string]interface{}, there is no information about type, and value will be stored as is. ([]byte) You are responsible for converting value into required type: for example: // to string
string(v.([]byte))
// to int64
strconv.ParseInt(string(v.([]byte)), 10, 64) |
Allow to use
map[string]interface{}
in functionLoad
,where key is column name, value is column value.
The text was updated successfully, but these errors were encountered: