书栈网 · BookStack 本次搜索耗时 0.052 秒,为您找到 842 个相关结果.
  • Graph Traversal

    Graph Traversal Graph Traversal For the purpose of the example, we’ll generate the following graph: The first step is to generate the 3 schemas: Pet , User , Group . go run ...
  • Versioned Migrations

    202 2022-10-19 《Ent v0.11 教程》
    Versioned Migrations Generating Versioned Migration Files Enable the versioned migration feature flag Create a migration files generator Verifying and linting migrations A Word...
  • 776 2022-02-28 《Ent v0.10 教程》
    边 概述 To 和 From 关系 一对一( O2O)两者之间 一对一(O2O)自引用 一对一(O2O)双向自引用 一对多(O2M )两者之间 一对多(O2M )自引用 多对多(M2M )两者之间 多对多(M2M )自引用 多对多(M2M)双向自引用 边字段 Migration To Edge Fields Required No...
  • 引言

    463 2021-09-30 《Ent v0.9 教程》
    引言 概述 它只是又一个 ORM 引言 概述 Schema 描述了图中一个实体类型的定义,如 User 或 Group , 并可以包含以下配置: 实体的字段 (或属性),如:User 的姓名或年龄。 实体的边 (或关系)。如:User 所属用户组,或 User 的朋友。 数据库相关的配置,如:索引或唯一索引。 下面是 Schema ...
  • 引言

    引言 概述 它只是又一个 ORM 引言 概述 Schema 描述了图中一个实体类型的定义,如 User 或 Group , 并可以包含以下配置: 实体的字段 (或属性),如:User 的姓名或年龄。 实体的边 (或关系)。如:User 所属用户组,或 User 的朋友。 数据库相关的配置,如:索引或唯一索引。 下面是 Schema ...
  • Mutation Inputs

    376 2021-09-30 《Ent v0.9 教程》
    Mutation Inputs Clone the code (optional) Go Templates If you have no experience with Go templates or if you have not used it before with the Ent code generator, go to the temp...
  • 聚合

    534 2021-09-30 《Ent v0.9 教程》
    聚合 分组 根据边进行分组 聚合 分组 对 users 按 name 和 age 字段分组,并计算 age 的总和。 package main import ( "context" "<project>/ent" "<project>/ent/user" ) ...
  • Graph Traversal

    220 2022-10-19 《Ent v0.11 教程》
    Graph Traversal Graph Traversal For the purpose of the example, we’ll generate the following graph: The first step is to generate the 3 schemas: Pet , User , Group . go run ...
  • Graph Traversal

    Graph Traversal Graph Traversal For the purpose of the example, we’ll generate the following graph: The first step is to generate the 3 schemas: Pet , User , Group . go run ...
  • Graph Traversal

    Graph Traversal Graph Traversal For the purpose of the example, we’ll generate the following graph: The first step is to generate the 3 schemas: Pet , User , Group . go run ...