The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Add SQL example to RPC (#6970)
Steve Chavez734da8ac5526
diff --git a/web/spec/supabase.yml b/web/spec/supabase.ymlindex 48cc578f9fc..b6aeccaf94e 100644--- a/web/spec/supabase.yml+++ b/web/spec/supabase.yml@@ -1255,11 +1255,17 @@ pages:That's a fancy way of saying that you can put some logic into your database then call it from anywhere.It's especially useful when the logic rarely changes - like password resets and updates.++ ```sql+ create or replace function hello_world() returns text as $$+ select 'Hello world';+ $$ language sql;+ ```$ref: '@supabase/postgrest-js."PostgrestClient".PostgrestClient.rpc'examples:- name: Call a Postgres functionisSpotlight: true- description: This is an example of invoking a Postgres function.+ description: This is an example of invoking a Postgres function with no parameters.js: |```jsconst { data, error } = await supabase