[Note] GORM 筆記
TL;DR
- query @ gorm
- method chaining @ gorm
db.
Table("table_name"). // Model(&model{})
Select("select syntax").
Group("field_names").
Order("field_name").
Find(&model{}) // Rows()
- methods 可以分成 chain methods、finisher methods、new session method。