sqlc 类型安全的 SQL 代码生成器
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:
- sqlc-gen-python
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/1991513ccie-png/skills
- Extracted from upstream docs: https://raw.githubusercontent.com/sqlc-dev/sqlc/HEAD/README.md