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

    Mixin 示例 内置Mixin Mixin Mixin 允许您创建可复用的 ent.Schema 代码,用与合成添加到其他 schemas ent.Mixin 接口如下: type Mixin interface { // Fields 数组的返回值会被添加到 schema 中。 Fields ()...
  • GraphQL 集成

    354 2022-02-28 《Ent v0.10 教程》
    GraphQL 集成 快速指南 Node API GQL 配置 分页 连接顺序 Usage Notes 样例 Defining order fields in ent/schema Define ordering types in GraphQL schema Adding orderBy argument to the pagination...
  • Indexes

    Indexes Multiple Fields Index On Edges Index On Edge Fields Dialect Support Atlas Support Storage Key Indexes Multiple Fields Indexes can be configured on one or more fie...
  • Fields

    Fields Quick Summary Types ID Field Database Type Go Type External ValueScanner Other Field Default Values Validators Built-in Validators Optional Nillable Nillable r...
  • Setting Up

    Setting Up Prerequisites Installation Code Generation Create a Test Case Setting Up This guide is intended for first-time users who want instructions on how to set up an Ent...
  • GraphQL Integration

    GraphQL Integration Quick Introduction Node API GQL Configuration Pagination Connection Ordering Usage Notes Example Defining order fields in ent/schema Define ordering type...
  • 引言

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

    Introduction Quick Summary It’s Just Another ORM Introduction Quick Summary Schema describes the definition of one entity type in the graph, like User or Group , and can con...
  • Introduction

    Introduction Quick Summary It’s Just Another ORM Introduction Quick Summary Schema describes the definition of one entity type in the graph, like User or Group , and can con...
  • 字段

    504 2022-10-19 《Ent v0.11 教程》
    字段 概述 类型 ID 字段 数据库字段类型 Go 类型 其它字段 默认值 校验器 内置校验器 Optional 可选项 Nillable 空值 Nillable required fields Immutable 不可变的 唯一键 Comments Storage Key Indexes Struct Tags Ad...