sqlc-dev

    sqlc-dev/sqlc

    Generate type-safe code from SQL

    android
    database
    code-generator
    go
    kotlin
    mysql
    orm
    postgresql
    python
    sql
    sqlite
    Go
    MIT
    17.0K stars
    999 forks
    17.0K watching
    Updated 2/27/2026
    View on GitHub
    Backblaze Advertisement

    Loading star history...

    Health Score

    15.96

    Weekly Growth

    +62

    +0.4% this week

    Contributors

    1

    Total contributors

    Open Issues

    725

    Generated Insights

    About sqlc

    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.

    Riza.io

    Coder.com Mint.fun Mux.com

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

    Discover Repositories

    Search across tracked repositories by name or description