Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
S

sqlc

> 数据库
Open source

Generate type-safe code from SQL

18.1K stars0 likes3 views
WebsiteGitHub

About

Generate type-safe code from SQL

# sqlc: A SQL Compiler 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](https://play.sqlc.dev/) to see it in action, and the [introductory blog post](https://conroy.org/introducing-sqlc) for the motivation behind sqlc. ## Overview - [Documentation](https://docs.sqlc.dev) - [Installation](https://docs.sqlc.dev/en/latest/overview/install.html) - [Playground](https://play.sqlc.dev) - [Website](https://sqlc.dev) - [Downloads](https://downloads.sqlc.dev/) - [Community](https://discord.gg/EcXzGe5SEs) ## Supported languages - [sqlc-gen-go](https://github.com/sqlc-dev/sqlc-gen-go) - [sqlc-gen-kotlin](https://github.com/sqlc-dev/sqlc-gen-kotlin) - [sqlc-gen-python](https://github.com/sqlc-dev/sqlc-gen-python) - [sqlc-gen-typescript](https://github.com/sqlc-dev/sqlc-gen-typescript) Additional languages can be added via [plugins](https://docs.sqlc.dev/en/latest/reference/language-support.html#community-language-support). ## Sponsors Development is possible thanks to our sponsors. If you would like to support sqlc, please consider [sponsoring on GitHub](https://github.com/sponsors/kyleconroy).

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

Issues· 694 open

View all issuesOpen on GitHub
  • #4629

    [docs] Include `@field` example under sqlc.arg

    Updated Oct 1, 2026
  • #4515

    Go code generation fails for PostgreSQL ENUM values with '+' and '-' due to duplicate constant names

    bugUpdated Sep 25, 2026
  • #4626

    Feature request: configurable templates

    enhancementUpdated Sep 23, 2026
  • #4624

    Global Go type overrides ignore the engine selector

    Updated Sep 23, 2026
  • #4324

    MySQL copyfrom throws "can't encode type models.ExperienceLocationsType to TSV" if models.ExperienceLocationsType is a string enum

    bug:books: mysql:wrench: golang:computer: darwinUpdated Sep 8, 2026
  • #781

    Override query return type

    enhancementUpdated Sep 8, 2026
  • #1871

    Cannot retrieve array of custom enums using pgx

    invalid:books: postgresql:wrench: golangpgx/v4Updated Aug 31, 2026
  • #4590

    Go v1.27 now has native UUID package in stdlib. Migrate from deprecated external dependency and use new native.

    Updated Aug 30, 2026
  • #4083

    Add DuckDB Support

    enhancementUpdated Aug 26, 2026
  • #3774

    Add Microsoft SQL Server support

    enhancementnew/engineUpdated Aug 20, 2026

> Tags

Gocode-generatorgokotlinmysql

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedOct 1, 2026
Category数据库
PricingOpen source

> Related tools

P
PostgreSQL
功能强大的开源关系型数据库
R
Redis
内存数据结构存储,常用作缓存与队列
M
MySQL
广泛使用的开源关系型数据库