3 ms·
I don't work with Go, but this seems like a dream. I really like the SQLx query macros in Rust. I would love for something like this
by petcat 2y ago
I don't work with Go, but this seems like a dream. I really like the SQLx query macros in Rust. I would love for something like this
- vhodges 2y agoThey have code generators for a few other languages too: https://docs.sqlc.dev/en/latest/reference/language-support.html https://docs.sqlc.dev/en/latest/reference/language-support.h... Surprisingly not Java, but probably pretty easy to add support for more.
- 1ba9115454 2y agohttps://github.com/cornucopia-rs/cornucopia https://github.com/cornucopia-rs/cornucopia Cornucopia generates rust code.
- jokethrowaway 2y agoI'm also using SQLx but I don't see what this adds compared to SQLx. We don't need to generate code and we get the same type safety from queries written in plain SQL. If anything, I wish there was a SQLx in other languages I have to support.
- sorenbs 2y agoWe are using SQLx under the hood to generate types for SQLite in https://www.prisma.io/typedsql https://www.prisma.io/typedsql. It's really great.