sqlc
sqlc: A focused open-source generator for type-safe SQL-driven application code. Ranked #15 of 33 in Code Generators by our editors (7.8/10); pricing: Free plan; best for type-safe SQL generation.
At a glance
- Editor score7.8 / 10
- PricingFree plan
- Best forType-safe SQL generation
- Free planYes
- Paid fromFree
- Project scaffoldingYes
- Facts checked20 Sep 2026

Where it wins
- Generates type-safe code from SQL queries and schemas
- Supports MySQL, PostgreSQL, and SQLite
- Runs on Windows, macOS, and Linux
Where it doesn't
- Built-in code generation is focused on Go
- Database support centers on MySQL, PostgreSQL, and SQLite
- AI features are not included
Our verdict on sqlc
sqlc is an open-source command-line tool for developers who want to generate type-safe application code from SQL schemas and queries. Projects are configured with sqlc.yaml, sqlc.yml, or sqlc.json, then generated with sqlc generate. The tool is particularly suited to teams that want SQL to remain the source of truth while adding static checking, query analysis, schema verification, and formatted queries to the development workflow.
Its strongest fit is a SQL-first engineering stack. sqlc provides built-in Go code generation and plugin-based generation for Kotlin, Python, and TypeScript. The category specification also lists C#, F#, Java, PHP, Ruby, Zig, and Rust as supported target languages, while the product description identifies additional community plugins. Database support includes MySQL, PostgreSQL, and SQLite. This combination gives teams a clear path from schema and query definitions to generated application code, with language and database coverage depending on the selected generator and plugin.
The product’s depth is concentrated in static SQL compilation and type checking rather than broad application scaffolding or AI-assisted development. Optional managed database analysis extends the workflow, while project scaffolding and CLI availability support repeatable generation in development environments. sqlc is a strong choice for developers who want open-source, SQL-centered code generation across Windows, macOS, and Linux. Teams seeking a wider database catalog, built-in generation beyond Go without plugins, or AI features should consider a different code generator.
Your product? Our editors can test sqlc in depth and publish a review, labelled as paid · from $149/mo →
sqlc pricing
sqlc fact sheet
| Free plan | Yes |
|---|---|
| Paid from | Free |
| Project scaffolding | Yes |
| Custom templates | Not verified |
| Schema-to-code generation | Yes |
| CLI available | Yes |
| IDE plugins | Not verified |
| Supported languages | Go, Kotlin, Python, TypeScript, C#, F#, Java, PHP, Ruby, Zig, Rust |
| Deployment | Self-hosted |
| Platforms | Windows, macOS, Linux |
| Support | Docs, Community |
| Built for | Solo, Small business, Mid-market (editorial estimate) |
| Pricing | Free plan |
| Website | sqlc.dev |
| Facts checked | 20 Sep 2026 |
Alternatives to sqlc
- OpenAPI GeneratorA flexible open-source toolkit for multi-language API generation and workflow integration.9.3
- Swagger CodegenA broad OpenAPI code generator with strong language coverage and CLI access.9.1
- Spring InitializrA focused, extensible way to start Spring Boot projects with the right build and dependency choices.9.0
Used sqlc? Be the first to review it
The editor score above is our own research. What this page doesn't have yet is a reader's view — what you used sqlc for, what worked and what didn't. No stars are seeded and no review is paid for; an editor reads every one before it appears.
Write a reviewTwo minutes · verified accounts only · read by an editor before it appears
Featured on iTechGuides
sqlc is listed in our Code Generators directory. Add the badge to your site — it links back to this page.
<a href="https://www.itechguides.com/products/sqlc/"><img src="https://www.itechguides.com/best/badge/sqlc.svg" alt="Featured on iTechGuides" width="230" height="46"></a>
Reviewed by iTechGuides Editors · Editorial team · Updated Oct 2026
Advertiser disclosure: iTechGuides is reader-supported. Vendors can pay for top positions in our rankings and for a place on other products' pages, and we may earn a commission when you click some links. Bought places stand at the number bought; this page and our disclosure say so. Paying vendors may get a fuller, more detailed review from our editors, and that review can change their score. How we rank.
Last updated · How we research and update


