+2
日增长
17,235
stars
1,024
forks
142
watchers
2,537
prs
1,793
issues
34
releases
README
ent - 一个强大的Go语言实体框架 English | 中文 | 日本語 ent是一个简单而又功能强大的Go语言实体框架,ent易于构建和维护应用程序与大数据模型。 - 图就是代码 - 将任何数据库表建模为Go对象。 - 轻松地遍历任何图形 - 可以轻松地运行查询、聚合和遍历任何图形结构。 - 静态类型和显式API - 使用代码生成静态类型和显式API,查询数据更加便捷。 - 多存储驱动程序 - 支持MySQL, PostgreSQL, SQLite 和 Gremlin。 - 可扩展 - 简单地扩展和使用Go模板自定义。 快速安装 console go install entgo.io/ent/cmd/ent@latest 请访问[entgo.io website][entgo instal]以使用[Go modules]进行正确安装。 文档和支持 开发和使用ent的文档请参照: https://entgo.io 如要讨论问题和支持, 创建一个issue 或者加入我们的Gopher Slack(Slack软件,类似于论坛)讨论组 加入 ent 社区 如果你想为ent做出贡献, 贡献代码 中写了如何做出自己的贡献 如果你的公司或者产品在使用ent,请让我们知道你已经加入 ent 用户 关于项目 ent 项目灵感来自于Ent,Ent是一个facebook内部使用的一个实体框架项目。 它由 [Facebook Connectivity][fbc] 团队通过 a8m 和 alexsn 开发和维护 , 它被生产中的多个团队和项目使用。它的v1版本的路线图为 版本的路线图. 关于项目更多的信息 ent介绍。 声明 ent使用Apache 2.0协议授权,可以在LICENSE文件中找到。 [entgo instal]: https://entgo.io/docs/code-gen/version-compatibility-between-entc-and-ent [Go modules]: https://github.com/golang/go/wiki/Modulesquick-start [fbc]: https://connectivity.fb.com
Top issues
#46Roadmap for v170 comments · 2019-10-02#1489How does a non-primary key field make it a foreign key ?24 comments · 2021-04-21#1048Will polymorphism be available?16 comments · 2020-12-15#2549custom select non-primery key in table as egdes 's target field(big stone for ent usage)15 comments · 2022-05-18#2621Postgres migration fails with long names14 comments · 2022-06-06#1815Feature Request: Bulk update14 comments · 2021-08-08#2985contrib/entgql: Client.noders() does not work properly with mixed node IDs12 comments · 2022-10-04#2377toProtoUser casts the automatic generated ID field using type int32 while the DB field type is int6412 comments · 2022-03-06
Discussions
#4533Stop supporting I*real1 comments · 2026-10-26#4497After `Create()` should database-generated values be loaded?1 comments · 2026-04-25#4483Child table records are not locked when there's with Has*With predicate in Where()1 comments · 2026-01-14#4461What is the future of Ent?2 comments · 2025-11-19#4451New changes to the Ent does nothing but alienates the users.1 comments · 2025-11-05#4435How Do I Execute Insert Query inside Schema Hook?0 comments · 2025-08-31#4428Writing tests for privacy rules1 comments · 2025-08-11#4427How can I perform `UPDATE table SET a = a * 2` using Go ent?1 comments · 2025-08-09