sqlc

Automatically generates type-safe code interfaces from SQL queries

Also known as
sqlc

What is sqlc?

A command-line tool that reads SQL queries and generates type-safe code in multiple programming languages, eliminating manual database access code while maintaining type safety across database interactions.

Independently observed

sqlc pricing

We don't have sqlc's full plan breakdown yet (its pricing page resisted automated reading). Here's what we could confirm. Always check live pricing for exact numbers.

What sqlc does

The capabilities that matter for orm & database tools, normalised so it lines up with every alternative. “-” means we haven't confirmed it, not that it's missing.

Core
Type-safe queries
Schema migrations
-
Relations / joins API
-
Languages
Go; community support for Python
Modelling
Schema-first modelling
Flexibility
Raw SQL escape hatch
Portability
Multiple database backends
Ops
Connection pooling
-
DX
Data browser / studio
Independently observed

Platform & deployment

Independently observed
Platforms
  • CLI
Deployment
  • Self-hosted

Security & compliance

Known vulnerabilities: 0 (0 in the last 12 months) sourcea count reflects scale & disclosure, not quality

sqlc FAQ

Common questions about sqlc, answered from independent, dated evidence.

What is sqlc?

An open-source code generator that produces type-safe application code from raw SQL queries, supporting PostgreSQL, MySQL, SQLite, and ClickHouse databases. It is indexed under ORM & Database Tools.

Source: https://docs.sqlc.dev

Is sqlc free to use?

sqlc is open source, so it can be self-hosted and used at no licence cost. It is released under the MIT licence. Pricing changes often, so verify at source before relying on it.

Source: https://docs.sqlc.dev

What platforms does sqlc support?

sqlc supports the web and a command-line interface. Platforms we have not confirmed are simply not listed here rather than ruled out.

Source: https://docs.sqlc.dev

Can sqlc be self-hosted?

Yes. sqlc can be deployed self-hosted, so it does not have to run on the vendor's infrastructure.

Source: https://docs.sqlc.dev

Is sqlc open source?

Yes. sqlc is published under the MIT licence, a permissive licence that generally allows commercial use and modification. Licence terms can change between releases, so verify against the repository for the version you intend to use.

Source: https://github.com/sqlc-dev/sqlc

sqlc alternatives

Other orm & database tools we track, ranked by the same independent score.

All sqlc alternatives, ranked →

Independent · unbought · dated

The vioscaleAI score: one lens on the evidence

Not user reviews and not a paid placement: a confidence-weighted blend of the independent signals below (adoption, activity, security posture, and more), which you can sort and re-weight yourself. Vendors can correct their listing but can never move their rank, and stars are weighted low as a vanity metric. It is one way to read the evidence for sqlc, not the verdict.

Balanced composite 51 / 100
low · 43%
Signal contributions to the composite score
SignalScoreWeightContributionEvidence
Development activity510.126.2
Capabilities670.085.6
Release cadence770.075.1
Stars800.032.7
Security score450.052.4
Dependent projects50.080.4
Integrations00.050.0-
Security posture00.090.0-
Package downloads00.170.0-
Developer Q&A activity00.080.0-

Computed . Re-weight it by intent, or see the full method.

All data & sourcesshow ↓

Every value we hold, with its source, retrieval date, and confidence. This is the evidence behind the score: don't trust it, verify it.

Activity

AttributeValueEvidence
Commits last 30d42mediumsource · 2026-09-10 · 65%

Adoption

AttributeValueEvidence
Github stars18,271highsource · 2026-09-10 · 90%
Dependent repos1highsource · 2026-09-10 · 85%

Content

AttributeValueEvidence
Faq5 itemsmediumsource · 2026-09-10 · 67%

Features

AttributeValueEvidence
CapabilitiesRaw sql: Yes · Multi db: Yes · Languages: Go; community support for Python · Studio gui: No · Schema first: Yes · Type safe queries: Yesmediumsource · 2026-09-10 · 60%

Language

AttributeValueEvidence
PrimaryGohighsource · 2026-09-10 · 90%

License

AttributeValueEvidence
SpdxMIThighsource · 2026-09-10 · 95%

Pricing

AttributeValueEvidence
Free tierYesmediumsource · 2026-08-14 · 60%
Modelopen_sourcemediumsource · 2026-08-14 · 60%
Price levelfreemediumsource · 2026-08-14 · 60%

Release

AttributeValueEvidence
Cadence days42mediumsource · 2026-09-10 · 70%
History20 itemsmediumsource · 2026-09-10 · 70%

Security

AttributeValueEvidence
Scorecard4.5highsource · 2026-09-10 · 90%
VulnerabilitiesCount: 0 · Source: https://advisories.ecosyste.ms/api/v1/advisories?ecosystem=go&package_name=github.com%2Fsqlc-dev%2Fsqlc&per_page=100 · Last 12m: 0highsource · 2026-09-10 · 90%
Still deciding?

Is sqlc the right choice for you?

Tell us the job, the constraints and what you weigh most, and we will rank sqlc against the rest of the orm & database tools we index, using the same dated evidence weighted your way.

Free to run, no account needed to start. How the evaluation works

For the makers of sqlc

Is this your product?

This profile was built from public sources without asking you. You can take the badge below and use it anywhere, and you can claim the profile to correct anything we got wrong. Both are free, and neither moves sqlc up or down: nobody can buy rank here, including you.

Take the badge

Live, always current, and free to use on your own site. It shows sqlc's independent score and links back to this profile.

sqlc, verified on vioscaleAI
HTML
<a href="https://www.vioscale.ai/software/sqlc" target="_blank" rel="noopener">
  <img src="https://www.vioscale.ai/badge/software/sqlc.svg" alt="sqlc, verified on vioscaleAI" width="330" height="76" loading="lazy" />
</a>
Markdown, for a README →
Markdown
[![sqlc, verified on vioscaleAI](https://www.vioscale.ai/badge/software/sqlc.svg)](https://www.vioscale.ai/software/sqlc)

Claim the profile

Verify you control the domain and you can correct the facts, add the sources we should be reading, and see how AI assistants are describing sqlc. Free, and it does not change the score.

  • Correct anything wrong, with evidence
  • Point our crawler at the pages that matter
  • See which AI systems are reading this profile
Claim sqlc

Not the owner? How vendor profiles work