You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
https://github.com/jmoiron/sqlx does this quite well already with fairly minimal overhead, I highly recommend it. (You can even use named parameters in queries using the tags).
3rd-party packages to make nicer scanners seem like the best route here. I don't see a compelling reason to try to standardize this in database/sql itself, and worse I don't see one obvious design. There are many possibilities. Let people use what works for them instead of forcing one.
Hi all,
First of all, thank you for Go. Its Awesome!
I like the idea how
encoding/json
Marshals and Unmarshals json objects into structs..One could define the database model like so:
And when scanning rows from the database:
What are your thoughts?
The text was updated successfully, but these errors were encountered: