sqlc Type-Safe SQL Code Generator
sqlc is a SQL compiler that generates type-safe Go, Python, Kotlin, and TypeScript code from plain SQL queries. You write SQL, run sqlc, and get fully typed data access functions with compile-time safety — no ORM, no reflection, no runtime query building.
Installation
Requirements and caveats from upstream:
Basic usage or getting-started notes:
You run sqlc to generate code with type-safe interfaces to those queries.
Check out an interactive example to see it in action, and the introductory blog post for the motivation behind sqlc.
Source: https://github.com/sqlc-dev/sqlc
Extracted from upstream docs: https://raw.githubusercontent.com/sqlc-dev/sqlc/HEAD/README.md