# sqlc

Command-line tool that generates type-safe code from SQL queries.


Source: https://findsoftware.frbit.cloud/sqlc/
Last reviewed: 2026-11-16
Listed since: 2026-11-16

## Record

### Links

- home: https://sqlc.dev
- repository: https://github.com/sqlc-dev/sqlc
- docs: https://docs.sqlc.dev
- discord: https://discord.gg/EcXzGe5SEs

### Identity

- status: active
- maintainer: Riza, Inc.
- maintainerType: company
- parent: unknown
- firstRelease: 2019
- hqCountry: unknown

### Kind

- category: dev-tool
- hosting: not applicable
- language: go
- runtime: binary
- runtimeMin: not applicable
- basedOn: unknown

### Content

- contentStore: not applicable
- databases: mysql, postgres, sqlite, sqlserver
- adminUi: not applicable
- headlessApi: not applicable
- templating: not applicable
- i18n: not applicable

### Rendering and deploy

- runsAs: local
- renderingModes: not applicable
- installMethod: homebrew, snap, go install, docker, download

### License

- licenseModel: open-source
- license: MIT

### Releases

- currentMajor: 1
- latestReleaseDate: 2026-04-22

### Adoption

- githubStargazers: 18461
- packagistDownloads: not applicable
- npmWeeklyDownloads: not applicable
- contributors: 242
- pluginCount: unknown
- packagistMonthlyDownloads: unknown
- ecosystemsMonthlyDownloads: unknown
- httpArchiveSites: unknown
- wordpressActiveInstalls: unknown
- dependentRepos: unknown
- dependentPackages: unknown

### Sources

- urls: https://api.github.com/repos/sqlc-dev/sqlc (read 2026-11-16)
- urls: https://api.github.com/repos/sqlc-dev/sqlc (read 2026-11-16)
- urls: https://github.com/sqlc-dev/sqlc/blob/main/README.md (read 2026-11-16)
- maintainer: https://github.com/sqlc-dev/sqlc/blob/main/LICENSE (read 2026-11-16)
- firstRelease: https://api.github.com/repos/sqlc-dev/sqlc/git/refs/tags/v0.0.0-devel (read 2026-11-16)
- category: https://sqlc.dev/ (read 2026-11-16)
- language: https://api.github.com/repos/sqlc-dev/sqlc (read 2026-11-16)
- runtime: https://docs.sqlc.dev/en/latest/overview/install.html (read 2026-11-16)
- license: https://api.github.com/repos/sqlc-dev/sqlc (read 2026-11-16)
- licenseModel: https://github.com/sqlc-dev/sqlc/blob/main/LICENSE (read 2026-11-16)
- currentMajor: https://api.github.com/repos/sqlc-dev/sqlc/releases (read 2026-11-16)
- latestReleaseDate: https://api.github.com/repos/sqlc-dev/sqlc/releases (read 2026-11-16)
- githubStargazers: https://api.github.com/repos/sqlc-dev/sqlc (read 2026-11-16)
- contributors: https://api.github.com/repos/sqlc-dev/sqlc/contributors?per_page=1 (read 2026-11-16)
- installMethod: https://docs.sqlc.dev/en/latest/overview/install.html (read 2026-11-16)
- installMethod: https://docs.sqlc.dev/en/latest/overview/install.html (read 2026-11-16)
- installMethod: https://docs.sqlc.dev/en/latest/overview/install.html (read 2026-11-16)
- installMethod: https://docs.sqlc.dev/en/latest/overview/install.html (read 2026-11-16)
- installMethod: https://docs.sqlc.dev/en/latest/overview/install.html (read 2026-11-16)
- databases: https://docs.sqlc.dev/en/latest/reference/language-support.html (read 2026-11-16)
- runsAs: https://docs.sqlc.dev/en/latest/howto/ci-cd.html (read 2026-11-16)

## Notes

sqlc is a command-line tool that turns SQL queries into type-safe code. You write queries in SQL, run sqlc to generate code with typed interfaces to them, and call that generated code from your application.

The tool ships as a single binary. The docs suggest running it as part of a CI/CD pipeline, so it stays on the developer side and never runs on the live site.

## Worth knowing

The go install route needs a recent Go toolchain, which the install page states.

---

Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Attributes are recorded, never scored; absent means unknown.
Credit, in full: FindSoftware, CC BY 4.0
