sqlc generates fully-type safe idiomatic Go code from SQL.
Seriously, it's that easy. You don't have to write any boilerplate SQL querying code ever again. Read more in the introduction.
Sponsored and used by these lovely companies
The new MySQL engine, code-named Dolphin, has finally landed. To try it out,
use mysql:beta for the engine value in sqlc.json. This uses the same
compiler infrastructure as the PostgreSQL engine, giving it feature parity and
making it easier to maintain.
This release includes a complete refactor of the compiler internals. The
compiler now uses a database-agnostic SQL AST, which the PostgreSQL backend
uses by default.
Don’t panic! I’ve fixed a few cases where sqlc was struggling to handle DDL
statements. JSON columns are now properly represented as