Would sqlc.dev fit here? It is now one of my favorite database-related codegen tools.
So this scaffolds sql queries? That's pretty cool
https://github.com/kyleconroy/sqlc/issues/296
Given the success of packaging other Go and Rust tools into npm, like esbuild, I suspect it’s probably actually not too bad of an idea.
https://docs.sqlc.dev/en/latest/reference/language-support.h...
It also only supports PostgreSQL as a first class option. It’s still maturing. That said, I’m using PostgreSQL + Go in production with no qualms.