Go MIT

sqlc

Generate type-safe code from SQL

S

sqlc-dev

Dernière activité 26 sept. 2026
sqlc-dev/sqlc

18,3 k

étoiles

1,1 k

forks

692

issues ouvertes

code-generatorgokotlinmysqlormpostgresqlpythonsqlsqlite

Ce README est souvent en anglais.

sqlc: A SQL Compiler

go Go Report Card

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

  1. You write queries in SQL.
  2. You run sqlc to generate code with type-safe interfaces to those queries.
  3. 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

Supported languages

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.

Coder.com Mint.fun Mux.com

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

Projets similaires

Command line tool to generate idiomatic Go code for SQL databases supporting PostgreSQL, MySQL, SQLite, Oracle, and Microsoft SQL Server

Gocode-generatorgolangmicrosoft-sql-server
Xxo
3,9 k étoiles336

Type safe SQL builder with code generation and automatic query result data mapping

Gocockroachdbcode-completioncode-generator
Ggo-jet
3,8 k étoiles194

Generate a Go ORM tailored to your database schema.

Godatabasegogolang
Aaarondl
7 k étoiles561