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...