sqlc

从 SQL 生成类型安全的代码。「Generate type-safe code from SQL」

Github星跟踪图

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.

Overview

Sponsors

sqlc development is funded by our generous
sponsors
, including the following
companies:

If you use sqlc at your company, please consider becoming a
sponsor
today.

Sponsors receive priority support via the sqlc Slack organization.

Acknowledgements

sqlc was inspired by PugSQL and
HugSQL.

主要指标

概览
名称与所有者sqlc-dev/sqlc
主编程语言Go
编程语言Go (语言数: 6)
平台Linux, Mac
许可证MIT License
所有者活动
创建于2019-06-21 21:11:35
推送于2025-07-18 10:26:53
最后一次提交
发布数37
最新版本名称v1.29.0 (发布于 )
第一版名称v0.0.0-devel (发布于 )
用户参与
星数15.6k
关注者数85
派生数0.9k
提交数1.7k
已启用问题?
问题数1747
打开的问题数532
拉请求数1567
打开的拉请求数86
关闭的拉请求数334
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?