Hacker News new | ask | show | jobs
by GeorgeHoneywood 1248 days ago
This is pretty much the idea behind sqlc, with some extra steps of course. You write your SQL queries in file, and it generates type safe bolierplate for you.

https://github.com/kyleconroy/sqlc