You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
how to use func (n nearbyUserDo) Select(conds ...field.Expr) INearbyUserDo and func (INearbyUserDo) Where(conds ...gen.Condition) INearbyUserDo to implement this
select ST_distance(location,ST_GeometryFromText('POINT(100 120)')) as distance from table1
where st_dwithin(location, ST_SetSRID(ST_MakePoint(?, ?), 4326), ?)
The document you expected this should be explained
Your Question
how to use
func (n nearbyUserDo) Select(conds ...field.Expr) INearbyUserDo
andfunc (INearbyUserDo) Where(conds ...gen.Condition) INearbyUserDo
to implement thisThe document you expected this should be explained
https://gorm.io/zh_CN/gen/query.html#%E6%96%B0%E5%BB%BA%E5%AD%97%E6%AE%B5
Expected answer
The text was updated successfully, but these errors were encountered: