These are chat archives for jinzhu/gorm

27th
Sep 2016
Machiel
@Machiel
Sep 27 2016 16:25
Lets say I have a struct called Post, with a few properties in there (Title, Content) but also LikeCount, is it possible to AddSelect("(SELECT COUNT(...) FROM ...) as LikeCount") somehow ?
I could do Select, but I want to retrieve all the fields, only with the count added.
Mr. Zenified
@ZenifiedFromI2P
Sep 27 2016 20:22
SELECT * ?