Show HN: sqlc – Compile SQL Queries to Type-Safe Go
conroy.org
conroy.org
What's more impressive is that (prior to this post) this library has had basically no publicity but people have been finding it anyway and picking it up, because it's such an obvious solution to the problem.
Highly recommend switching to this if you're using Go.
It's been great working on sqlc over the last six months. Happy to answer any questions you have about the project.
Without having a look at the sources yet: could sqlc generated code take any advantage pgx[1] extra features or is it designed to use strictly database/sql?
If the effort isn't massive I would be up for helping out with that, as that would enable me to use it in a couple of systems.
This query language also abstracts how data is stored on the backend. So when a user does a CREATE TABLE (...), it doesn't actually create a physical table.
I think every developer should play around with creating their own grammar at some point. It's a powerful skill to have.
AFAIK only TypeORM and really pricey enterprise database software comes with change management systems like this. Even Rails do not have such conveniences.
https://docs.microsoft.com/en-us/ef/ef6/modeling/code-first/...
The open source version Entity Framework Core also.