Has One Declare Retrieve Override Foreign Key Override References Polymorphism Association CRUD with Has One Eager Loading Self-Referential Has One FOREIGN KEY Constraints...
特性 安装 快速入门 The fantastic ORM library for Golang aims to be developer friendly. 特性 全功能 ORM 关联 (Has One、Has Many、Belongs To、Many To Many、多态、单表继承) Create、Save、Update、Delete、Fi...
Chain Method Finisher Method New Session Method GORM allows method chaining, so you can write code like this: db . Where ( "name = ?" , "jinzhu" ). Where ( "age = ?" , 18 ...
Auto Migration Migrator Interface CurrentDatabase Tables Columns Constraints Indexes Constraints Other Migration Tools Auto Migration Automatically migrate your schema, ...
Belongs To Belongs To 重写外键 重写引用 Belongs to 的 CRUD 预加载 外键约束 Belongs To Belongs To belongs to 会与另一个模型建立了一对一的连接。 这种模型的每一个实例都“属于”另一个模型的一个实例。 例如,您的应用包含 user 和 company,并且每个...
Register Serializer Customized Serializer Type Serializer is an extensible interface that allows to customize how to serialize and deserialize data with databasae. GORM provide...