What a wild statement.
SQL is one of the most useful tools ever developed, as evidence that it's BY FAR the most widely used programming language in the world.
The idea that it is an ABSOLUTE LAST RESORT that should never be used unless you ABSOLUTELY HAVE TO is insane...
> SQL was not designed for application development, and every attempt to integrate it into higher level programs (ORM, fluent query builders, raw strings, macros/preprocessors) comes with unpleasant rough edges.
Forgetting that interactive SQL queries, and to an even greater degree the underlying databases, are applications.
SQL makes doing something that is VERY hard stupidly easy.
Sqlc is the best thing I've personally used because it produces models and repositories based on plain sql queries.
It's almost as if it was easy to reinvent something highly used that someone would've already done it...