书栈网 · BookStack 本次搜索耗时 0.064 秒,为您找到 842 个相关结果.
  • 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 ...
  • Quick Introduction

    428 2022-10-19 《Ent v0.11 教程》
    Quick Introduction Setup A Go Environment Create Your First Schema Create Your First Entity Query Your Entities Add Your First Edge (Relation) Add Your First Inverse Edge (Bac...
  • Interceptors

    Interceptors Defining an Interceptor Configuration Interceptors Registration Using the generated intercept package Defining a Traverser Interceptors vs. Traversers Examples...
  • Hooks

    Hooks Mutation Hooks Runtime hooks Schema hooks Hooks Registration Import Cycle Error Evaluation order Hook helpers Transaction Hooks Codegen Hooks Hooks The Hooks op...
  • 索引

    415 2022-02-28 《Ent v0.10 教程》
    索引 多个字段 边上的索引 Index On Edge Fields Dialect Support Atlas Support Storage Key 索引 多个字段 索引可以在一个或多个字段上配置以提高数据检索速度,也可以定义其唯一性。 package schema import ( "entgo.io/...
  • Fields

    Fields Quick Summary Types ID Field Database Type Go Type Other Field Default Values Validators Built-in Validators Optional Nillable Nillable required fields Immutab...
  • Hooks

    419 2022-02-28 《Ent v0.10 教程》
    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...
  • 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...
  • 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...
  • Quick Introduction

    Quick Introduction Setup A Go Environment Create Your First Schema Create Your First Entity Query Your Entities Add Your First Edge (Relation) Add Your First Inverse Edge (Bac...