sqlc-dev/sqlc
GitHub: sqlc-dev/sqlc
一款将原生 SQL 查询编译成类型安全代码的工具,兼具 SQL 灵活性与编译期类型检查能力。
Stars: 17094 | Forks: 1008
# sqlc:SQL 编译器

[](https://goreportcard.com/report/github.com/sqlc-dev/sqlc)
sqlc 从 SQL 生成**类型安全的代码**。它是这样工作的:
1. 你用 SQL 编写查询。
2. 你运行 sqlc 以生成带有针对这些查询的类型安全接口的代码。
3. 你编写调用生成的代码的应用程序代码。
查看[交互式示例](https://play.sqlc.dev/)以了解其实际效果,以及[介绍性博文](https://conroy.org/introducing-sqlc)了解 sqlc 背后的动机。
## 概述
- [文档](https://docs.sqlc.dev)
- [安装](https://docs.sqlc.dev/en/latest/overview/install.html)
- [演练场](https://play.sqlc.dev)
- [网站](https://sqlc.dev)
- [下载](https://downloads.sqlc.dev/)
- [社区](https://discord.gg/EcXzGe5SEs)
## 支持的语言
- [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)
可以通过[插件](https://docs.sqlc.dev/en/latest/reference/language-support.html#community-language-support)添加其他语言。
## 赞助商
开发得以进行归功于我们的赞助商。如果你想支持 sqlc,
请考虑[在 GitHub 上赞助](https://github.com/sponsors/kyleconroy)。
Cyberax - NaNuNaNu - Stumble - WestfalNamur - alecthomas - cameronnewman - danielbprice - davherrmann - dvob - gilcrest - gzuidhof - jeffreylo - mmcloughlin - ryohei1216 - sgielen
标签:DNS解析, EVTX分析, EVTX分析, Go, Kotlin, ORM替代方案, Python, Ruby工具, SQL, sqlc, SQL编译器, TypeScript, 云安全监控, 代码生成器, 后端开发, 多线程, 安全插件, 开发效率, 开源项目, 数据库工具, 无后门, 日志审计, 测试用例, 类型安全, 系统审计, 网络可观测性, 逆向工具, 静态分析



