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

    索引 多个字段 边上的索引 Index On Edge Fields Dialect Support Atlas Support Storage Key 索引 多个字段 索引可以在一个或多个字段上配置以提高数据检索速度,也可以定义其唯一性。 package schema import ( "entgo.io/...
  • Introduction

    Introduction Installation Initialize A New Schema Generate Assets Version Compatibility Between entc And ent Code Generation Options Storage Options External Templates Use...
  • Hooks

    362 2021-09-30 《Ent v0.9 教程》
    Hooks Mutation Hooks Runtime hooks Schema hooks Hooks Registration Users MUST import the ent/runtime in order to register the schema hooks. The package can be imported in the...
  • 快速指南

    927 2021-09-30 《Ent v0.9 教程》
    快速指南 初始化Go环境 安装 创建你的第一个结构 创建你的第一个实体 查询你的实体 添加你的第一条边 (关系) 添加您的第一条逆向边(反向引用) 创建你的第二条边 进行第一次图遍历 完整示例 快速指南 ent 是一个简单而又强大的Go实体框架,易于构建和维护应用程序与大数据模型: 简单地使用数据库结构作为图结构。 使用Go代...
  • Hooks

    Hooks Mutation Hooks Runtime hooks Schema hooks Hooks Registration important" level="5">important Evaluation order Hook helpers Transaction Hooks Codegen Hooks Hooks T...
  • Indexes

    Indexes Multiple Fields Index On Edges Index On Edge Fields Dialect Support Indexes Multiple Fields Indexes can be configured on one or more fields in order to improve spee...
  • 整合sql.DB

    整合sql.DB 配置sql.DB 通过MySQL驱动使用Opencensus 使用pgx驱动PostgreSQL 整合sql.DB 下面的示例将展示,如何使用sql.DB 对象对ent.Client 进行配置。 配置sql.DB 第一种形式: package main import ( "time" ...
  • Mixin

    Mixin Example Builtin Mixin Mixin A Mixin allows you to create reusable pieces of ent.Schema code that can be injected into other schemas using composition. The ent.Mixin ...
  • Planning a Migration

    Planning a Migration Planning a migration Planning a Migration Supporting repository The change described in this section can be found in PR #6 in the supporting repository. ...
  • Mixin

    Mixin Example Builtin Mixin Mixin A Mixin allows you to create reusable pieces of ent.Schema code that can be injected into other schemas using composition. The ent.Mixin ...