3 ms·
Would sqlc.dev fit here? It is now one of my favorite database-related codegen tools.
by jchw 4y ago
Would sqlc.dev fit here? It is now one of my favorite database-related codegen tools.
- mutant 4y ago> 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
- enobrev 4y agoThis is excellent. I had just very recently thought to build this same thing for php and typescript. Haven't started it yet, but great to see the same thing out there for other languages.
- jchw 4y agoIf you don’t mind the codegen being written in Go, it does look like these folks also want to do the same thing for TypeScript. https://github.com/kyleconroy/sqlc/issues/296 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.
- teddyh 4y agosqlc generates Go code, nothing else, but the web page of sqlc.dev does not mention this anywhere. Of course, this is a .dev site, and .dev is owned by Google, so it is only to be expected, I guess?
- jchw 4y agoIt is Go first and foremost, but there are work-in-progress generators for other languages, including Kotlin and (in my opinion, somewhat oddly,) Python. https://docs.sqlc.dev/en/latest/reference/language-support.html 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.
- mgramin 4y agoYep, thanks. Could you create a PR?