Hacker News new | past | comments | ask | show | jobs | submit login

Would sqlc.dev fit here? It is now one of my favorite database-related codegen tools.



> 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


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


If 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

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.


sqlc 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?


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


Yep, thanks. Could you create a PR?




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: