Hi, how I can make sql query from javascript? I'm new.
s
silentworks
12/20/2021, 11:56 AM
I'm not sure exactly what you are asking but have you checked the supabase docs and followed any of the examples? You should try that first if you are new and get more familiar with the library.
p
Paolo Lops
12/20/2021, 1:07 PM
hi, i'm serching for this:
Paolo Lops
12/20/2021, 1:07 PM
create or replace function get_messages()
returns setof messages as $$
var json_result = plv8.execute(
'select * from messages'
);
return json_result;
Paolo Lops
12/20/2021, 1:08 PM
an example in javascript of the plv8: Javascript Language