Initial commit
This commit is contained in:
9
sql/create_execute_sql_function.sql
Normal file
9
sql/create_execute_sql_function.sql
Normal file
@@ -0,0 +1,9 @@
|
||||
-- Create a function in Supabase that can execute arbitrary SQL
|
||||
CREATE OR REPLACE FUNCTION public.execute_sql(sql_text text)
|
||||
RETURNS void
|
||||
LANGUAGE plpgsql
|
||||
AS $$
|
||||
BEGIN
|
||||
EXECUTE sql_text;
|
||||
END;
|
||||
$$;
|
||||
Reference in New Issue
Block a user