Hacker News new | ask | show | jobs
by mattgreenrocks 808 days ago
Very nice work. I've always tended towards libraries that automated more the mapping of database entities to their language-specific representation, such as Dapper on .NET. SQL is generally quite fine as a query language, warts and all. Better than digging through docs and issues to find out how to issue some lesser-used functionality that may or may not be supported by a query builder.
1 comments

this is my goto. Dapper was also my intro to it, but its a pattern I've followed in every other language since. Writing queries is easy, mapping is the annoying/repetitive part. sqlx for Golang has some decent mapping helpers too.

I don't want to learn/remember a new way to query the same underlying database every time I switch projects/stacks/etc... sql is better, literally.