The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
chore: update pgtap.mdx (#18813)
Joel Leec83e165b6e81
diff --git a/apps/docs/pages/guides/database/extensions/pgtap.mdx b/apps/docs/pages/guides/database/extensions/pgtap.mdxindex 435d2ed8e33..acf5ef9f195 100644--- a/apps/docs/pages/guides/database/extensions/pgtap.mdx+++ b/apps/docs/pages/guides/database/extensions/pgtap.mdx@@ -135,12 +135,14 @@ API:## Testing Functions```sql-begin;-select plan( 1 );+prepare hello_expr as select 'hello'-select function_returns( 'hello_world', 'text' ); # test if the function "hello_world" returns text-select function_returns( 'is_even', ARRAY['integer'], 'boolean' ); # test if the function "is_even" returns a boolean-select results_eq('select * from hello_world()', 'hello'); # test if the function "hello_world" returns "hello"+begin;+select plan(3);+-- You'll need to create a hello_world and is_even function+select function_returns( 'hello_world', 'text' ); -- test if the function "hello_world" returns text+select function_returns( 'is_even', ARRAY['integer'], 'boolean' ); -- test if the function "is_even" returns a boolean+select results_eq('select * from hello_world()', 'hello_expr'); -- test if the function "hello_world" returns "hello"select * from finish();rollback;