-
Notifications
You must be signed in to change notification settings - Fork 141
Open
Description
Hey there
I wonder if storm can support fetch certain fields only like gorm do:
type User struct {
ID uint
Name string
Age int
Gender string // hundreds of fields
}
type APIUser struct {
ID uint
Name string
}
// Select `id`, `name` automatically when querying
db.Model(&User{}).Limit(10).Find(&APIUser{})
// SELECT `id`, `name` FROM `users` LIMIT 10I've seen you had answered at #216 that this will be able to do with the v3, but I've not found any documents or samples about that.
Could you please help on this?
Thanks a lot!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels