chizom
12/27/2021, 9:24 AMchizom
12/27/2021, 9:24 AMktosiek
12/27/2021, 9:28 AMchizom
12/27/2021, 9:30 AMchizom
12/27/2021, 9:30 AMchizom
12/27/2021, 9:33 AMchizom
12/27/2021, 9:33 AMktosiek
12/27/2021, 9:35 AMchizom
12/27/2021, 9:37 AMchizom
12/27/2021, 9:38 AMlorencerri
12/27/2021, 9:40 AMDodiaPrashant
12/27/2021, 9:49 AManothercoder
12/27/2021, 11:04 AMDBSR
12/27/2021, 2:12 PMTarky
12/27/2021, 3:33 PMTarky
12/27/2021, 3:33 PMrudolfbono
12/27/2021, 3:49 PMsupabase/migrations
directory to version control?chipilov
12/27/2021, 3:51 PMTarky
12/27/2021, 4:18 PMSubramanya Chakravarthy
12/27/2021, 5:21 PMST_AsText
but not sure how to use it
sql
create or replace function public.nearby_deals(longitude float, latitude float, radius int)
returns table(id int, title text, description text, dealer uuid, geolocation geography(point))
as $body$
select
deals.id,
deals.title,
deals.description,
deals.dealer,
deals.geolocation,
deals.location
from deals
where ST_DWithin(deals.geolocation, ST_SetSRID(ST_MakePoint(longitude, latitude),4326), radius)
$body$
language sql;
kresimirgalic
12/27/2021, 5:32 PMsaudev001
12/27/2021, 5:45 PMDeleted User
12/27/2021, 7:31 PMktosiek
12/27/2021, 8:13 PMktosiek
12/27/2021, 8:13 PMmansedan
12/27/2021, 8:22 PMDeleted User
12/27/2021, 8:42 PMktosiek
12/27/2021, 9:15 PMktosiek
12/27/2021, 9:16 PMmansedan
12/27/2021, 9:29 PM