+2
Daily
17,235
stars
1,024
forks
142
watchers
2,537
prs
1,793
issues
34
releases
README
ent - An Entity Framework For Go English | 中文 | 日本語 | 한국어 Simple, yet powerful entity framework for Go, that makes it easy to build and maintain applications with large data-models. - Schema As Code - model any database schema as Go objects. - Easily Traverse Any Graph - run queries, aggregations and traverse any graph structure easily. - Statically Typed And Explicit API - 100% statically typed and explicit API using code generation. - Multi Storage Driver - supports MySQL, MariaDB, TiDB, PostgreSQL, CockroachDB, SQLite and Gremlin. - Extendable - simple to extend and customize using Go templates. Quick Installation console go install entgo.io/ent/cmd/ent@latest For proper installation using [Go modules], visit [entgo.io website][entgo install]. Docs and Support The documentation for developing and using ent is available at: https://entgo.io For discussion and support, open an issue or join our Discord server. Developed and Sponsored by the Atlas Team About the Project The ent project was inspired by Ent, an entity framework used internally at Meta (Facebook). It was created by a8m and alexsn from the [Facebook Connectivity][fbc] team. These days, it is developed and maintained by the Atlas team, and the roadmap for its v1 release is described here. Join the ent Community Building ent would not have been possible without the collective work of our entire community. We maintain a contributors page which lists the contributors to this ent. In order to contribute to ent, see the CONTRIBUTING file for how to go get started. If your company or your product is using ent, please let us know by adding yourself to the ent users page. For updates, follow us on Twitter at https://twitter.com/entgo_io License ent is licensed under Apache 2.0 as found in the LICENSE file. [entgo install]: 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