sqlc
Input—per 1M tokens
Output—per 1M tokens
Context—tokens
WeightsClosed
About
sqlc is ranked #10 of 33 in code generators on Inferse. It runs on Linux, macOS, Self-hosted, Windows. There is a free plan.
Compared on code generators
Facts
- Purpose
- sqlc generates fully type-safe, idiomatic code from SQL queries.sqlc.dev · 2 Oct 2026
- Workflow
- Users write SQL queries, run sqlc to generate code with type-safe interfaces, then call the generated methods from application code.sqlc.dev · 2 Oct 2026
- Supported databases
- The documented language support matrix covers MySQL, PostgreSQL, and SQLite.docs.sqlc.dev · 2 Oct 2026
- Languages
- The official language matrix lists Go, Kotlin, Python, and TypeScript generators, with Go stable and Kotlin, Python, and TypeScript marked beta for MySQL and PostgreSQL.docs.sqlc.dev · 2 Oct 2026
- Plugins
- The documentation says new languages can be added via plugins and lists community plugins for languages including C#, F#, Java, PHP, Ruby, Zig, Python, and Rust.docs.sqlc.dev · 2 Oct 2026
- Query linting
- The sqlc vet command checks queries against configured rules to find mistakes in syntactically valid SQL.sqlc.dev · 2 Oct 2026
- Schema verification
- sqlc verify checks whether schema changes break existing queries and generated code.sqlc.dev · 2 Oct 2026
- Managed databases
- sqlc Cloud can create short-lived hosted databases for database-backed query analysis and linting; the current guide describes managed databases as read-only.docs.sqlc.dev · 2 Oct 2026
- Managed database limit
- The current managed-databases guide requires access to a running database server and a server connection URI in configuration.docs.sqlc.dev · 2 Oct 2026
- Privacy
- The privacy guide says the sqlc command-line tool does not collect information, send crash reports to third parties, or gather anonymous usage analytics.docs.sqlc.dev · 2 Oct 2026
- Hosted service data
- The privacy guide says playground data is stored in Google Cloud Storage and automatically deleted after 30 days.docs.sqlc.dev · 2 Oct 2026
- Install options
- The maker offers prebuilt downloads for Linux, macOS, and Windows, and documents installation through package managers, Go, and Docker.github.com · 2 Oct 2026
- Support
- The maker invites users to contact [email protected] or join the sqlc Discord server with feedback.sqlc.dev · 2 Oct 2026
- Company
- The maker says it incorporated Riza in 2023 to work on sqlc full-time.sqlc.dev · 2 Oct 2026
Best sqlc alternatives
See all 12
7.4 GraphQL Hive $20/mo first paid tier Free plan
7.4 quicktype $19/mo first paid tier Free plan
7.3 Backstage Free free plan, no paid price published Free plan
7.3 Speakeasy See plans price on the maker's page
7.2 Micronaut Launch See plans price on the maker's page
5.9 gqlgen Free free plan, no paid price published Free plan Where it ranks on Inferse
- Best Code Generators in 2026#10 of 33
Sources
- sqlc.dev· checked 2 Oct 2026
- docs.sqlc.dev/en/latest/reference/language-support.ht· checked 2 Oct 2026
- sqlc.dev/posts/2023/07/06/working-on-sqlc-full-t· checked 2 Oct 2026
- sqlc.dev/changelog/· checked 2 Oct 2026
- docs.sqlc.dev/en/latest/howto/managed-databases.html· checked 2 Oct 2026
- docs.sqlc.dev/en/latest/guides/privacy.html· checked 2 Oct 2026
- github.com/sqlc-dev/sqlc/blob/main/docs/overview/i· checked 2 Oct 2026



