And then there is Golang. SQLC ( https://sqlc.dev ) becomes a source of truth not a sink... mix in some yaml and you have your json tags and validation mixed in.
I expect that if you look at all the users of sqlc, most of them are simply using it to transform SQL queries into a different query language (e.g. REST) for everyone else to use. That supports the idea that SQL is a niche skill.