sqlc

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

Github stars Tracking Chart

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.

Main metrics

Overview
Name With Ownersqlc-dev/sqlc
Primary LanguageGo
Program languageGo (Language Count: 6)
PlatformLinux, Mac
License:MIT License
所有者活动
Created At2019-06-21 21:11:35
Pushed At2025-06-19 10:11:34
Last Commit At
Release Count37
Last Release Namev1.29.0 (Posted on )
First Release Namev0.0.0-devel (Posted on )
用户参与
Stargazers Count15.3k
Watchers Count84
Fork Count888
Commits Count1.7k
Has Issues Enabled
Issues Count1737
Issue Open Count523
Pull Requests Count1563
Pull Requests Open Count81
Pull Requests Close Count327
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private