MCPcopy
hub / github.com/ent/ent

github.com/ent/ent @v0.14.6 sqlite

repository ↗ · DeepWiki ↗ · release v0.14.6 ↗
61,971 symbols 190,230 edges 2,156 files 57,162 documented · 92%
README

ent - Goのエンティティーフレームワーク

Twitter

English | 中文 | 日本語

シンプルながらもパワフルなGoのエンティティフレームワークであり、大規模なデータモデルを持つアプリケーションを容易に構築・保守できるようにします。

  • Schema As Code(コードとしてのスキーマ) - あらゆるデータベーススキーマをGoオブジェクトとしてモデル化します。
  • 任意のグラフを簡単にトラバースできます - クエリや集約の実行、任意のグラフ構造の走査を容易に実行できます。
  • 100%静的に型付けされた明示的なAPI - コード生成により、100%静的に型付けされた曖昧さのないAPIを提供します。
  • マルチストレージドライバ - MySQL、MariaDB、 TiDB、PostgreSQL、CockroachDB、SQLite、Gremlinをサポートしています。
  • 拡張性 - Goテンプレートを使用して簡単に拡張、カスタマイズできます。

クイックインストール

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

Go modulesを使ったインストールについては、entgo.ioのWebサイトをご覧ください。

ドキュメントとサポート

entを開発・使用するためのドキュメントは、こちら: https://entgo.io

議論やサポートについては、Issueを開くか、gophers Slackのチャンネルに参加してください。

entコミュニティへの参加

entの構築は、コミュニティ全体の協力なしには実現できませんでした。 私たちは、このentの貢献者をリストアップしたcontributorsページを管理しています。

entに貢献するときは、まずCONTRIBUTINGを参照してください。 もし、あなたの会社や製品でentを利用している場合は、ent usersページに追記する形で、そのことをぜひ教えて下さい。

最新情報については、Twitter(https://twitter.com/entgo_io)をフォローしてください。

プロジェクトについて

entプロジェクトは、私たちが社内で使用しているエンティティフレームワークであるEntからインスピレーションを得ています。 entは、Facebook Connectivityチームのa8malexsnが開発・保守しています。 本番環境では複数のチームやプロジェクトで使用されており、v1リリースまでのロードマップはこちらに記載されています。 このプロジェクトの動機についてはこちらをご覧ください。

ライセンス

entは、LICENSEファイルにもある通り、Apache 2.0でライセンスされています。

Extension points exported contracts — how you extend this code

Field (Interface)
A Field interface returns a field descriptor for vertex fields/properties. The usage for the interface is as follows: [23 …
ent.go
Expr (Interface)
Expr represents an entql expression. All expressions implement the Expr interface. [7 implementers]
entql/entql.go
Fielder (Interface)
go:generate go run internal/gen.go Fielder is the interface for creating a predicate (entql.P) by a field name from the [191 …
entql/types.go
Committer (Interface)
Committer is the interface that wraps the Commit method. [93 implementers]
entc/integration/migrate/entv2/tx.go
Committer (Interface)
Committer is the interface that wraps the Commit method. [93 implementers]
examples/domaintypes/ent/tx.go
Committer (Interface)
Committer is the interface that wraps the Commit method. [93 implementers]
examples/o2mrecur/ent/tx.go
Committer (Interface)
Committer is the interface that wraps the Commit method. [93 implementers]
examples/functionalidx/ent/tx.go
Committer (Interface)
Committer is the interface that wraps the Commit method. [93 implementers]
examples/rls/ent/tx.go

Core symbols most depended-on inside this repo

New
called by 2640
dialect/sql/builder.go
Query
called by 2615
entc/integration/template/ent/node.go
Where
called by 2537
examples/privacytenant/ent/privacy/privacy.go
WriteString
called by 2147
dialect/sql/builder.go
NewFieldSpec
called by 2023
dialect/sql/sqlgraph/graph.go
Has
called by 1337
dialect/gremlin/graph/dsl/traversal.go
Error
called by 1131
examples/start/ent/enttest/enttest.go
FieldEQ
called by 1122
dialect/sql/sql.go

Shape

Method 41,867
Function 14,608
Struct 3,706
FuncType 1,276
TypeAlias 280
Interface 229
Class 5

Languages

Go100%
TypeScript1%

Modules by API surface

entc/integration/gremlin/ent/mutation.go1,614 symbols
entc/integration/ent/mutation.go1,614 symbols
entc/integration/edgeschema/ent/mutation.go950 symbols
entc/integration/customid/ent/mutation.go847 symbols
entc/integration/ent/fieldtype_create.go795 symbols
entc/integration/ent/fieldtype/where.go720 symbols
entc/integration/gremlin/ent/fieldtype/where.go698 symbols
entc/integration/migrate/entv2/mutation.go555 symbols
entc/integration/edgefield/ent/mutation.go497 symbols
entc/integration/gremlin/ent/fieldtype_update.go417 symbols
entc/integration/ent/fieldtype_update.go417 symbols
entc/integration/ent/client.go412 symbols

Dependencies from manifests, versioned

ariga.io/atlasv0.36.2-0.2025073018 · 1×
ariga.io/atlas-go-sdkv0.6.9 · 1×
entgo.io/entv0.14.2-0.2025011914 · 1×
filippo.io/edwards25519v1.1.0 · 1×
github.com/DATA-DOG/go-sqlmockv1.5.0 · 1×
github.com/agext/levenshteinv1.2.3 · 1×
github.com/apparentlymart/go-textseg/v15v15.0.0 · 1×
github.com/bmatcuk/doublestarv1.3.4 · 1×
github.com/clipperhouse/displaywidthv0.6.2 · 1×
github.com/clipperhouse/stringishv0.1.1 · 1×
github.com/clipperhouse/uax29/v2v2.3.0 · 1×

Datastores touched

(mysql)Database · 1 repos
entDatabase · 1 repos
dbDatabase · 1 repos
versioned_migrate_devDatabase · 1 repos
versioned_migrate_devDatabase · 1 repos

For agents

$ claude mcp add ent \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact