sqlc-dev /sqlc

Generate type-safe code from SQL

★ 18,459⑂ 1,146👁 82⑃ 2,465● 1,919▤ 38
GoMITCreated 2019-06-21sqlc.dev
Download: v1.31.1v1.31.1 ↓1.31.12026-04-22
+1
Daily
18,459
stars
1,146
forks
82
watchers
2,465
prs
1,919
issues
38
releases

README

sqlc: A SQL Compiler

!go


sqlc generates type-safe code from SQL. Here's how it works:

1. You write queries in SQL.
1. You run sqlc to generate code with type-safe interfaces to those queries.
1. You write application code that calls the generated code.

Check out an interactive example to see it in action, and the introductory blog post for the motivation behind sqlc.

 Overview

- Documentation
- Installation
- Playground
- Website
- Downloads
- Community

 Supported languages

- sqlc-gen-go
- sqlc-gen-kotlin
- sqlc-gen-python
- sqlc-gen-typescript

Additional languages can be added via plugins.

 Sponsors

Development is possible thanks to our sponsors. If you would like to support sqlc,
please consider sponsoring on GitHub.


  
  
  



  Cyberax - 
  NaNuNaNu - 
  Stumble - 
  WestfalNamur - 
  alecthomas - 
  cameronnewman - 
  danielbprice - 
  davherrmann - 
  dvob - 
  gilcrest - 
  gzuidhof - 
  jeffreylo - 
  mmcloughlin - 
  ryohei1216 - 
  sgielen

Top issues

Discussions

Latest release

v1.31.1 v1.31.1 2026-04-22
Bug Fixes

- Remove go.mod replace directive that breaks go install ...@latest (4401)
- Downgrade github.com/ncruces/go-sqlite3 to v0.32.0 (4400)

 Build

- (deps) Bump github.com/jackc/pgx/v5 (4398)

Snapshot: 2026-11-16T09:23:14Z · Data license Apache-2.0 · JSON