Jan Tennert
06/03/2022, 4:09 PMJan Tennert
06/03/2022, 4:23 PM(uid() IN (SELECT authorized_users FROM shops s where s.id = shop_id))
Jenaro Calvino
06/03/2022, 5:02 PMgaryaustin
06/03/2022, 5:56 PMjar
06/04/2022, 2:02 AMselect * from todos where todo.done = true into sub_todos;
its just a filtered table but I dont think
declare
sub_todos public.todos%type;
is a thing. Or
declare
sub_todos public.todos%rowtype[];
garyaustin
06/04/2022, 2:18 AMdelt
06/04/2022, 9:34 AMdelt
06/04/2022, 9:35 AMdelt
06/04/2022, 9:35 AMdelt
06/04/2022, 9:37 AMdelt
06/04/2022, 10:53 AMjar
06/05/2022, 4:06 AMinput->'id'
and json_extract_path(input, 'id')
the exacct same or is there difference?Muezz
06/05/2022, 5:35 PMjensen
06/05/2022, 8:58 PMjensen
06/06/2022, 12:25 AMupsert()
. https://supabase.com/docs/reference/javascript/upsertjar
06/06/2022, 2:47 AMselect into
always returns one row to the variable of %rowtype its not ever multiple even if multple rows pass where?tourdownunder
06/06/2022, 5:28 AMarray_agg(s.var)
Muezz
06/06/2022, 7:25 AMjensen
06/06/2022, 7:25 AMMuezz
06/06/2022, 7:26 AMMuezz
06/06/2022, 7:26 AMjensen
06/06/2022, 7:28 AMon conflict
and since my query is used to create a user record with a provider id, I use the provider id (from discord) as the conflict key.jensen
06/06/2022, 7:28 AMjensen
06/06/2022, 7:29 AMMuezz
06/06/2022, 7:30 AMjensen
06/06/2022, 7:35 AMMuezz
06/06/2022, 7:38 AMjensen
06/06/2022, 7:39 AMMuezz
06/06/2022, 7:39 AMMuezz
06/06/2022, 7:39 AM