News for hackers. Stuff that matters.
Re:Why Generics? by runevault on Wednesday July 31, 2019 @03:43PM (#20577612)
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)
Re:Why Generics? by throwaway8879 on Wednesday July 31, 2019 @04:03PM (#20577871)
The sqlx package is a similar Go wrapper around SQL. Very handy for scanning into structs.