Hacker News new | ask | show | jobs
by runevault 2514 days ago
Dapper really is such a weird edge case. You still write all the sql, all it does is the conversion from a type to the input parameters and the returned rows into objects where the row names match the parameters of the class. Frankly I feel like that's the right way to build ORMs in all languages that have the facilities to manage it (and maybe those that don't you pass in a function pointer to do the dumping of rows into type for you)
1 comments

The sqlx package is a similar Go wrapper around SQL. Very handy for scanning into structs.