jar
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 AMjar
06/04/2022, 2:20 AMgaryaustin
06/04/2022, 2:30 AMjar
06/04/2022, 2:59 AMjson_extract_path(blogpost,'{id}')
and blogpost->>id the same?
still going kinda line by line on errors from my js thinking draft but was thinking put all children where blogpost_id = blogpost->>id into declare var
then turn jsonb children to be into rows as well into a declare var
loop through new ones and if id exists in current list then update that id. If it doesnt exist create it.
loop through og list if an id no longer exists in new one delete itjar
06/04/2022, 3:00 AMgaryaustin
06/04/2022, 3:00 PM