ent README

The project's README from github.com/ent/ent. As one markdown file: README.md.

ent - An Entity Framework For Go

Twitter Discord

English | 中文 | 日本語 | 한국어

Simple, yet powerful entity framework for Go, that makes it easy to build and maintain applications with large data-models.

Quick Installation

go install entgo.io/ent/cmd/ent@latest

For proper installation using Go modules, visit entgo.io website.

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

image

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 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.

ent (ent/ent)

Searching Database…

17.2K ·GitHub
这是什么?ent 是一个简洁而强大的 Go 实体框架,让你能轻松构建和维护拥有大型数据模型的应用程序。
ent 是一个库还是框架?它在我的 Go 应用里是怎么用的?它是一个 Go 库:你把数据库 schema 定义成 Go 对象(Schema As Code),然后通过代码生成得到一个 100% 静态类型、清晰明确的 API,供你的应用程序调用。
我该怎么把它加到我的项目里?使用 Go modules 安装即可;具体的安装步骤在 entgo.io 网站上有详细说明。
它能连接哪些数据库?通过它内置的多种存储驱动,支持 MySQL、MariaDB、TiDB、PostgreSQL、CockroachDB、SQLite 和 Gremlin。
它稳定吗?还在积极维护吗?是的——它由 Atlas 团队积极开发和维护,该团队已经发布了 v1 版本的路线图;这个项目在 GitHub 上有 17k+ stars。
ent 是怎么来的?它的灵感来自 Meta(Facebook)内部使用的一个实体框架,由 Facebook Connectivity 团队的 a8m 和 alexsn 创建。如今它由 Atlas 团队开发和维护。
定义好 schema 之后,我能用它做什么?你可以通过生成的全静态类型 API,轻松地执行查询和聚合,并遍历任意图结构。
ent 生成的代码可以自定义吗?可以——ent 的设计目标就是易于扩展和定制,你可以使用 Go 模板来实现。
What are similar projects?efcore, diesel, mybatis-plus, sqlc, drizzle-orm, sequelize, peewee, orm
Creator
ent
Size
34 MB
Stars
17.2K
Age
7y
Commits · 90 Days