upper/db

using query builder with functions

bornjre opened this issue · 0 comments

what is best way to query sth like this using sql query builder (db.Cond)?

--- person around 5km

select * from person where person.xyz = 13 and ST_Distance(person.location, ST_MakePoint(11.5, 42.9)::geography) < 5000;