Generate type-safe code from SQL
In the end, I think ORMs are an nice tool if used appropriately in the correct scenario. Once you balance out the positives and negatives however, it may seem that including an ORM in your stack may not be the best idea once your startup scales. I love tools which make SQL easier to work with! There's something called sqlc which basically compiles SQL to type-safe Go. Tools like this provide us with some of the same advantages as an ORM, just without effecting our actual database workflow.
Download talent.io’s Tech Salary Report. Median salaries, most in-demand technologies, state of the remote work... all you need to know your worth on the market by tech recruitment platform talent.io
How can I generate SQL code from GORM?
1 project | reddit.com/r/golang | 20 Sep 2022
Handling large sql scripts in go
2 projects | reddit.com/r/golang | 12 Aug 2022
Taming SQL and ORMs with sqlc
1 project | dev.to | 7 Jun 2022
Sqlc – generate fully type-safe idiomatic code from SQL
1 project | news.ycombinator.com | 9 May 2022
Taming SQL and ORMs with sqlc — go get it #001
1 project | reddit.com/r/golang | 28 Apr 2022