书栈网 · BookStack 本次搜索耗时 0.025 秒,为您找到 619 个相关结果.
  • Customize Data Types

    Implements Customized Data Type Scanner / Valuer GormDataTypeInterface GormValuerInterface Create/Update from SQL Expr Value based on Context Clause Expression Customized Da...
  • 12.2 Configurations for Data Access

    12.2 Configurations for Data Access 12.2 Configurations for Data Access This table summarizes the configuration modules and dependencies to add to your build to enable them: Ta...
  • Create

    Create Record Create Record With Selected Fields Batch Insert Create Hooks Create From Map Create From SQL Expression/Context Valuer Advanced Create With Associations Defaul...
  • Raw SQL & SQL Builder

    Raw SQL Named Argument DryRun Mode ToSQL Row & Rows Scan *sql.Rows into struct Connection Advanced Clauses Clause Builder Clause Options StatementModifier Raw SQL ...
  • 12.2.2 Configuring Hibernate

    12.2.2 Configuring Hibernate Setting up a Hibernate/JPA EntityManager Using GORM for Hibernate 12.2.2 Configuring Hibernate Setting up a Hibernate/JPA EntityManager Using...
  • 12.2.2 Configuring Hibernate

    12.2.2 Configuring Hibernate Setting up a Hibernate/JPA EntityManager Using GORM for Hibernate 12.2.2 Configuring Hibernate Setting up a Hibernate/JPA EntityManager Using...
  • 3. 模型

    2089 2018-05-17 《GORM 1.0 中文文档》
    模型 模型定义 {#md} 约定 {#c} gorm.Model 结构体 表名是结构体名称的复数形式 更改默认表名 列名是字段名的蛇形小写 字段ID 为主键 字段CreatedAt 用于存储记录的创建时间 字段UpdatedAt 用于存储记录的修改时间 字段DeletedAt 用于存储记录的删除时间,如果字段存在 模型 模型...
  • 约定

    使用 ID 作为主键 复数表名 TableName 临时指定表名 命名策略 列名 时间戳追踪 CreatedAt UpdatedAt 使用 ID 作为主键 默认情况下,GORM 会使用 ID 作为表的主键。 type User struct {   ID   string // 默认情况下,名为 `ID` 的...
  • Prometheus

    Usage User-Defined Metrics MySQL GORM provides Prometheus plugin to collect DBStats or user-defined metrics https://github.com/go-gorm/prometheus Usage import ( "go...
  • 12.2 Configurations for Data Access

    12.2 Configurations for Data Access 12.2 Configurations for Data Access The table summarizes the configuration modules and the dependencies you should add to your build to enab...