书栈网 · BookStack 本次搜索耗时 0.021 秒,为您找到 619 个相关结果.
  • 设置

    Set / Get InstanceSet / InstanceGet GORM 提供了 Set , Get , InstanceSet , InstanceGet 方法来允许用户传值给 勾子 或其他方法 Gorm 中有一些特性用到了这种机制,如迁移表格时传递表格选项。 // 创建表时添加表后缀 db . Set ( "gorm:table_o...
  • Conventions

    ID as Primary Key Pluralized Table Name TableName Temporarily specify a name NamingStrategy Column Name Timestamp Tracking CreatedAt UpdatedAt ID as Primary Key GORM u...
  • Transactions

    Disable Default Transaction Transaction Nested Transactions Control the transaction manually A Specific Example SavePoint, RollbackTo Disable Default Transaction GORM perfo...
  • 设置

    Set / Get InstanceSet / InstanceGet GORM 提供了 Set , Get , InstanceSet , InstanceGet 方法来允许用户传值给 勾子 或其他方法 Gorm 中有一些特性用到了这种机制,如迁移表格时传递表格选项。 // 创建表时添加表后缀 db . Set ( "gorm:table...
  • Connecting to MatrixOne with Golang

    Connecting to MatrixOne with Golang Before you start Using Golang to connect to MatrixOne Using Gorm to connect to MatrixOne Reference Connecting to MatrixOne with Golang Ma...
  • Belongs To

    Belongs To Override Foreign Key Override References CRUD with Belongs To Eager Loading FOREIGN KEY Constraints Belongs To A belongs to association sets up a one-to-one con...
  • 声明模型

    模型定义 约定 gorm.Model 高级选项 字段级权限控制 创建/更新时间追踪(纳秒、毫秒、秒、Time) 嵌入结构体 字段标签 关联标签 模型定义 模型是标准的 struct,由 Go 的基本数据类型、实现了 Scanner 和 Valuer 接口的自定义类型及其指针或别名组成 例如: type User struc...
  • 贡献

    Contribute to GORM Help others to know GORM Documentation and Writing Translate this site Program Donations Platinum Sponsors OpenCollective Sponsors Github Backers Patreo...
  • DBResolver

    Usage Transaction Automatic connection switching Read/Write Splitting Manual connection switching Load Balancing Connection Pool DBResolver adds multiple databases support ...
  • 7. Development

    971 2017-12-16 《gorm文档(英文)》
    Development Architecture Write Plugins Register a new callback Delete an existing callback Replace an existing callback Register callback orders Pre-Defined Callbacks De...