sqlc
Generate type-safe application code from SQL.
At a glance
- Editor scoreNot yet scored
- PricingFree plan
- Best forType-safe SQL generation
- Free planYes
- Paid fromNone
- 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.
sqlc pricing
sqlc fact sheet
| Free plan | Yes |
|---|---|
| Paid from | None |
| 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.—
- Swagger CodegenA broad OpenAPI code generator with strong language coverage and CLI access.—
- Spring InitializrA focused, extensible way to start Spring Boot projects with the right build and dependency choices.—
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 · your e-mail is never shown · 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>
Guides on code generators
- Best AI for Coding 2026: Top Code Generators Compared by Use CaseAug 2026
- The Ultimate Guide to Using a QR Code GeneratorAug 2026
- QR Code Generator: Create a Free Code or Choose a Dynamic ToolAug 2026
Reviewed by iTechGuides Editors · Editorial team · Updated Sep 2026
Advertiser disclosure: iTechGuides is reader-supported. We may earn a commission when you click some links. It never changes a score or a verdict. How we rank.

