+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
#1628Add Clickhouse support25 comments · 2022-05-17#720Ability to return an iterator on a "many" query23 comments · 2020-09-27#296Add Typescript support23 comments · 2020-01-24#1389Add CockroachDB support22 comments · 2022-01-24#2348sqlc.embed() generates code that cannot handle NULL items21 comments · 2023-06-21#2997sqlc.embed using LEFT JOIN15 comments · 2023-11-21#1505Add Cloud Spanner and BigQuery support13 comments · 2022-03-22#2244Feature proposal: Query Fragments12 comments · 2023-04-30
Discussions
#4694Timeline for the next release0 comments · 2026-11-15#4671sql statement with EXTRACT(DAY from appointment_timestamp) = @dow generates params code where dow is of type time.Time and not int2 comments · 2026-10-30#4627What have you learned from using WebAssembly as sqlc’s plugin boundary?0 comments · 2026-09-25#4612emit interface per query file1 comments · 2026-09-08#4589Huge Go v1.27 release probably warrants some updates0 comments · 2026-08-27#4494Deprecate column without dropping / virtual migrations1 comments · 2026-06-29#4433Is there a way to access `sqlc parse` output within a sqlc plugin?0 comments · 2026-05-10#4408v1.31.10 comments · 2026-04-22
Latest release
v1.31.1 v1.31.1 2026-04-22Bug 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)