diff --git a/apps/docs/content/guides/api/automatic-retries-in-supabase-js.mdx b/apps/docs/content/guides/api/automatic-retries-in-supabase-js.mdx index 16fa4ce1f8..a842d73e1c 100644 --- a/apps/docs/content/guides/api/automatic-retries-in-supabase-js.mdx +++ b/apps/docs/content/guides/api/automatic-retries-in-supabase-js.mdx @@ -108,7 +108,7 @@ const fetchWithRetry = fetchRetry(fetch, { attempt < 3 && response && response.status == 520 // Cloudflare errors - && response.url.includes('rpc/your_stored_procedure') + && response.url.includes('rpc/your_database_function') if (shouldRetry(attempt, error, response)) { console.log(`Retrying request... Attempt #${attempt}`, response) @@ -119,9 +119,9 @@ const fetchWithRetry = fetchRetry(fetch, { } }) -async function yourStoredProcedure() { +async function yourDatabaseFunction() { const { data, error } = await supabase - .rpc('your_stored_procedure', { param1: 'value1' }); + .rpc('your_database_function', { param1: 'value1' }); if (error) { console.log('Error executing RPC:', error); @@ -130,10 +130,10 @@ async function yourStoredProcedure() { } } -yourStoredProcedure(); +yourDatabaseFunction(); ``` -By using `retryOn` with a custom function, you can define specific conditions for retrying requests. In this example, the retry logic is applied only to requests targeting a specific stored procedure. +By using `retryOn` with a custom function, you can define specific conditions for retrying requests. In this example, the retry logic is applied only to requests targeting a specific database function. ## Conclusion diff --git a/apps/docs/content/guides/database/full-text-search.mdx b/apps/docs/content/guides/database/full-text-search.mdx index 2a29ba1cba..8935875712 100644 --- a/apps/docs/content/guides/database/full-text-search.mdx +++ b/apps/docs/content/guides/database/full-text-search.mdx @@ -665,7 +665,7 @@ select title from books where to_tsvector(title) @@ to_tsquery('Lit:*'); ### Extending functionality with RPC -To make the partial search functionality accessible through the API, you can wrap the search logic in a stored procedure. +To make the partial search functionality accessible through the API, you can wrap the search logic in a database function. After creating this function, you can invoke it from your application using the SDK for your platform. Here's an example: diff --git a/apps/docs/content/troubleshooting/certain-operations-are-too-complex-to-perform-directly-using-the-client-libraries-8JaphH.mdx b/apps/docs/content/troubleshooting/certain-operations-are-too-complex-to-perform-directly-using-the-client-libraries-8JaphH.mdx index 7872164ad0..bfdd8eae97 100644 --- a/apps/docs/content/troubleshooting/certain-operations-are-too-complex-to-perform-directly-using-the-client-libraries-8JaphH.mdx +++ b/apps/docs/content/troubleshooting/certain-operations-are-too-complex-to-perform-directly-using-the-client-libraries-8JaphH.mdx @@ -53,4 +53,4 @@ supabase.rpc("get_my_complex_query", { parameter: 1 }) **Further Resources:** For more information on Postgres database functions, refer to the following resource: -[Supabase Stored Procedures](/docs/guides/database/functions#quick-demo) +[Supabase Functions](/docs/guides/database/functions#quick-demo) diff --git a/apps/docs/spec/cli_v1_commands.yaml b/apps/docs/spec/cli_v1_commands.yaml index c7a896d13b..25e89b7389 100644 --- a/apps/docs/spec/cli_v1_commands.yaml +++ b/apps/docs/spec/cli_v1_commands.yaml @@ -2391,7 +2391,7 @@ commands: Automatically generates type definitions based on your Postgres database schema. - This command connects to your database (local or remote) and generates typed definitions that match your database tables, views, and stored procedures. By default, it generates TypeScript definitions, but also supports Go and Swift. + This command connects to your database (local or remote) and generates typed definitions that match your database tables, views, and functions. By default, it generates TypeScript definitions, but also supports Go and Swift. Generated types give you type safety and autocompletion when working with your database in code, helping prevent runtime errors and improving developer experience. diff --git a/apps/docs/spec/cli_v1_config.yaml b/apps/docs/spec/cli_v1_config.yaml index 4aacb1186b..bb10e2fdf1 100644 --- a/apps/docs/spec/cli_v1_config.yaml +++ b/apps/docs/spec/cli_v1_config.yaml @@ -116,7 +116,7 @@ parameters: required: false default: '1000' description: | - The maximum number of rows returned from a view, table, or stored procedure. Limits payload size for accidental or malicious requests. + The maximum number of rows returned from a view, table, or function. Limits payload size for accidental or malicious requests. links: - name: 'PostgREST configuration' link: 'https://postgrest.org/en/stable/configuration.html' diff --git a/apps/docs/spec/supabase_csharp_v0.yml b/apps/docs/spec/supabase_csharp_v0.yml index 5ce6739942..09134ade3a 100644 --- a/apps/docs/spec/supabase_csharp_v0.yml +++ b/apps/docs/spec/supabase_csharp_v0.yml @@ -667,17 +667,17 @@ functions: ``` - id: rpc - title: 'Stored Procedures: Rpc()' + title: 'Database Functions: Rpc()' description: | - You can call stored procedures as a "Remote Procedure Call". + You can call functions as a "Remote Procedure Call". 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. examples: - - id: call-a-stored-procedure - name: Call a stored procedure + - id: call-a-database-function + name: Call a database function isSpotlight: true - description: This is an example invoking a stored procedure. + description: This is an example invoking a database function. code: | ```c# await supabase.Rpc("hello_world", null); diff --git a/apps/docs/spec/supabase_csharp_v1.yml b/apps/docs/spec/supabase_csharp_v1.yml index 5970d2909b..538710b48b 100644 --- a/apps/docs/spec/supabase_csharp_v1.yml +++ b/apps/docs/spec/supabase_csharp_v1.yml @@ -667,17 +667,17 @@ functions: ``` - id: rpc - title: 'Stored Procedures: Rpc()' + title: 'Database Functions: Rpc()' description: | - You can call stored procedures as a "Remote Procedure Call". + You can call functions as a "Remote Procedure Call". 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. examples: - - id: call-a-stored-procedure - name: Call a stored procedure + - id: call-a-database-function + name: Call a database function isSpotlight: true - description: This is an example invoking a stored procedure. + description: This is an example invoking a database function. code: | ```c# await supabase.Rpc("hello_world", null); diff --git a/apps/docs/spec/supabase_dart_v1.yml b/apps/docs/spec/supabase_dart_v1.yml index a98b0a8865..709d4c1329 100644 --- a/apps/docs/spec/supabase_dart_v1.yml +++ b/apps/docs/spec/supabase_dart_v1.yml @@ -1049,17 +1049,17 @@ functions: ``` - id: rpc - title: 'Stored Procedures: rpc()' + title: 'Database Functions: rpc()' description: | - You can call stored procedures as a "Remote Procedure Call". + You can call functions as a "Remote Procedure Call". 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. examples: - - id: call-a-stored-procedure - name: Call a stored procedure + - id: call-a-database-function + name: Call a database function isSpotlight: true - description: This is an example invoking a stored procedure. + description: This is an example invoking a database function. code: | ```dart final data = await supabase @@ -1994,9 +1994,9 @@ functions: name: With `rpc()` code: | ```dart - // Only valid if the Stored Procedure returns a table type. + // Only valid if the database function returns a table type. final data = await supabase - .rpc('echo_all_instruments) + .rpc('echo_all_instruments') .not('name', 'eq', 'violin'); ``` @@ -2037,7 +2037,7 @@ functions: name: With `rpc()` code: | ```dart - // Only valid if the Stored Procedure returns a table type. + // Only valid if the database function returns a table type. final data = await supabase .rpc('echo_all_instruments') .match({'name': 'violin', 'country_id': 3}); @@ -2080,7 +2080,7 @@ functions: name: With `rpc()` code: | ```dart - // Only valid if the Stored Procedure returns a table type. + // Only valid if the database function returns a table type. final data = await supabase .rpc('echo_all_instruments') .eq('name', 'guqin'); @@ -2123,7 +2123,7 @@ functions: name: With `rpc()` code: | ```dart - // Only valid if the Stored Procedure returns a table type. + // Only valid if the database function returns a table type. final data = await supabase .rpc('echo_all_instruments') .neq('name', 'violin'); @@ -2166,7 +2166,7 @@ functions: name: With `rpc()` code: | ```dart - // Only valid if the Stored Procedure returns a table type. + // Only valid if the database function returns a table type. final data = await supabase .rpc('echo_all_cities') .gt('country_id', 250); @@ -2209,7 +2209,7 @@ functions: name: With `rpc()` code: | ```dart - // Only valid if the Stored Procedure returns a table type. + // Only valid if the database function returns a table type. final data = await supabase .rpc('echo_all_cities') .gte('country_id', 250); @@ -2252,7 +2252,7 @@ functions: name: With `rpc()` code: | ```dart - // Only valid if the Stored Procedure returns a table type. + // Only valid if the database function returns a table type. final data = await supabase .rpc('echo_all_cities') .lt('country_id', 250); @@ -2296,7 +2296,7 @@ functions: name: With `rpc()` code: | ```dart - // Only valid if the Stored Procedure returns a table type. + // Only valid if the database function returns a table type. final data = await supabase .rpc('echo_all_cities') .lte('country_id', 250); @@ -2340,7 +2340,7 @@ functions: name: With `rpc()` code: | ```dart - // Only valid if the Stored Procedure returns a table type. + // Only valid if the database function returns a table type. final data = await supabase .rpc('echo_all_cities') .like('name', '%la%'); @@ -2383,7 +2383,7 @@ functions: name: With `rpc()` code: | ```dart - // Only valid if the Stored Procedure returns a table type. + // Only valid if the database function returns a table type. final data = await supabase .rpc('echo_all_cities') .ilike('name', '%la%'); @@ -2428,7 +2428,7 @@ functions: name: With `rpc()` code: | ```dart - // Only valid if the Stored Procedure returns a table type. + // Only valid if the database function returns a table type. final data = await supabase .rpc('echo_all_cities') .is_('name', null); @@ -2473,7 +2473,7 @@ functions: name: With `rpc()` code: | ```dart - // Only valid if the Stored Procedure returns a table type. + // Only valid if the database function returns a table type. final data = await supabase .rpc('echo_all_cities') .in_('name', ['Minas Tirith', 'Minas Morgul']); @@ -2514,7 +2514,7 @@ functions: name: With `rpc()` code: | ```dart - // Only valid if the Stored Procedure returns a table type. + // Only valid if the database function returns a table type. final data = await supabase .rpc('echo_all_countries') .contains('main_exports', ['oil']); @@ -2555,7 +2555,7 @@ functions: name: With `rpc()` code: | ```dart - // Only valid if the Stored Procedure returns a table type. + // Only valid if the database function returns a table type. final data = await supabase .rpc('echo_all_countries') .containedBy('main_exports', ['cars', 'food', 'machine']); @@ -2596,7 +2596,7 @@ functions: name: With `rpc()` code: | ```dart - // Only valid if the Stored Procedure returns a table type. + // Only valid if the database function returns a table type. final data = await supabase .rpc('echo_all_countries') .rangeLt('population_range_millions', '[150, 250]'); @@ -2637,7 +2637,7 @@ functions: name: With `rpc()` code: | ```dart - // Only valid if the Stored Procedure returns a table type. + // Only valid if the database function returns a table type. final data = await supabase .rpc('echo_all_countries') .rangeGt('population_range_millions', '[150, 250]'); @@ -2678,7 +2678,7 @@ functions: name: With `rpc()` code: | ```dart - // Only valid if the Stored Procedure returns a table type. + // Only valid if the database function returns a table type. final data = await supabase .rpc('echo_all_countries') .rangeGte('population_range_millions', '[150, 250]'); @@ -2720,7 +2720,7 @@ functions: name: With `rpc()` code: | ```dart - // Only valid if the Stored Procedure returns a table type. + // Only valid if the database function returns a table type. final data = await supabase .rpc('echo_all_countries') .rangeLte('population_range_millions', [150, 250]); @@ -2761,7 +2761,7 @@ functions: name: With `rpc()` code: | ```dart - // Only valid if the Stored Procedure returns a table type. + // Only valid if the database function returns a table type. final data = await supabase .rpc('echo_all_countries') .rangeAdjacent('population_range_millions', '[70, 185]'); @@ -2802,7 +2802,7 @@ functions: name: With `rpc()` code: | ```dart - // Only valid if the Stored Procedure returns a table type. + // Only valid if the database function returns a table type. final data = await supabase .rpc('echo_all_countries') .overlaps('main_exports', ['computers', 'minerals']); @@ -2918,7 +2918,7 @@ functions: name: With `rpc()` code: | ```dart - // Only valid if the Stored Procedure returns a table type. + // Only valid if the database function returns a table type. final data = await supabase .rpc('echo_all_cities') .filter('name', 'in', '("Minas Tirith","Minas Morgul")'); diff --git a/apps/docs/spec/supabase_dart_v2.yml b/apps/docs/spec/supabase_dart_v2.yml index 5073346c5f..079d7b4ff1 100644 --- a/apps/docs/spec/supabase_dart_v2.yml +++ b/apps/docs/spec/supabase_dart_v2.yml @@ -3532,7 +3532,7 @@ functions: ``` - id: rpc - title: 'Stored Procedures: rpc()' + title: 'Database Functions: rpc()' description: | Perform a function call. @@ -5680,7 +5680,7 @@ functions: name: With rpc() code: | ```dart - // Only valid if the Stored Procedure returns a table type. + // Only valid if the database function returns a table type. final data = await supabase .rpc('echo_all_cities') .not('name', 'eq', 'Mordor'); @@ -7047,7 +7047,7 @@ functions: name: With rpc() code: | ```dart - // Only valid if the Stored Procedure returns a table type. + // Only valid if the database function returns a table type. final data = await supabase .rpc('echo_all_countries') .filter('name', 'in', '("Rohan","Mordor")'); diff --git a/apps/docs/spec/supabase_kt_v1.yml b/apps/docs/spec/supabase_kt_v1.yml index 47fbae318f..a2f08e8ade 100644 --- a/apps/docs/spec/supabase_kt_v1.yml +++ b/apps/docs/spec/supabase_kt_v1.yml @@ -553,19 +553,19 @@ functions: }.decodeSingle() ``` - id: rpc - title: 'Stored Procedures: rpc()' + title: 'Database Functions: rpc()' description: | - You can call stored procedures as a "Remote Procedure Call". + You can call functions as a "Remote Procedure Call". 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. - When calling `rpc` with parameters, you have to provide a [serializable value](/docs/reference/kotlin/installing#serialization) in the function parameter. examples: - - id: call-a-stored-procedure - name: Call a stored procedure + - id: call-a-database-function + name: Call a database function isSpotlight: true - description: This is an example invoking a stored procedure. + description: This is an example invoking a database function. code: | ```kotlin supabase.postgrest.rpc("hello_world") diff --git a/apps/docs/spec/supabase_kt_v2.yml b/apps/docs/spec/supabase_kt_v2.yml index f0eefcbc43..3edd417d4c 100644 --- a/apps/docs/spec/supabase_kt_v2.yml +++ b/apps/docs/spec/supabase_kt_v2.yml @@ -684,9 +684,9 @@ functions: }.decodeSingle() ``` - id: rpc - title: 'Stored Procedures: rpc()' + title: 'Database Functions: rpc()' description: | - You can call stored procedures as a "Remote Procedure Call". + You can call functions as a "Remote Procedure Call". 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. @@ -710,10 +710,10 @@ functions: type: PostgrestRequestBuilder.() -> Unit description: Additional configuration & filtering for the request. examples: - - id: call-a-stored-procedure - name: Call a stored procedure + - id: call-a-database-function + name: Call a database function isSpotlight: true - description: This is an example invoking a stored procedure. + description: This is an example invoking a database function. code: | ```kotlin supabase.postgrest.rpc("hello_world") diff --git a/apps/docs/spec/supabase_kt_v3.yml b/apps/docs/spec/supabase_kt_v3.yml index 27b4cd1ae1..e7c8b44a7f 100644 --- a/apps/docs/spec/supabase_kt_v3.yml +++ b/apps/docs/spec/supabase_kt_v3.yml @@ -697,9 +697,9 @@ functions: }.decodeSingle() ``` - id: rpc - title: 'Stored Procedures: rpc()' + title: 'Database Functions: rpc()' description: | - You can call stored procedures as a "Remote Procedure Call". + You can call functions as a "Remote Procedure Call". 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. @@ -728,10 +728,10 @@ functions: type: String description: The schema to use for the function. Defaults to `public` examples: - - id: call-a-stored-procedure - name: Call a stored procedure + - id: call-a-database-function + name: Call a database function isSpotlight: true - description: This is an example invoking a stored procedure. + description: This is an example invoking a database function. code: | ```kotlin supabase.postgrest.rpc("hello_world") diff --git a/apps/docs/spec/supabase_py_v2.yml b/apps/docs/spec/supabase_py_v2.yml index 3172bbb02d..5e52edb2d0 100644 --- a/apps/docs/spec/supabase_py_v2.yml +++ b/apps/docs/spec/supabase_py_v2.yml @@ -4154,11 +4154,11 @@ functions: - name: fn isOptional: false type: callable - description: The stored procedure call to be executed. + description: The database function call to be executed. - name: params isOptional: true type: dict of any - description: Parameters passed into the stored procedure call. + description: Parameters passed into the database function call. - name: get isOptional: true type: dict of any diff --git a/apps/docs/spec/supabase_swift_v2.yml b/apps/docs/spec/supabase_swift_v2.yml index 9efeef86d6..7f622a247a 100644 --- a/apps/docs/spec/supabase_swift_v2.yml +++ b/apps/docs/spec/supabase_swift_v2.yml @@ -4052,7 +4052,7 @@ functions: .execute() ``` description: | - Ensure that the RPC call affects at most 10 rows. Useful for limiting the impact of stored procedures. + Ensure that the RPC call affects at most 10 rows. Useful for limiting the impact of functions. - id: single title: single() diff --git a/apps/studio/components/interfaces/Database/Functions/FunctionsList/FunctionsList.tsx b/apps/studio/components/interfaces/Database/Functions/FunctionsList/FunctionsList.tsx index 440a5e2491..7716922147 100644 --- a/apps/studio/components/interfaces/Database/Functions/FunctionsList/FunctionsList.tsx +++ b/apps/studio/components/interfaces/Database/Functions/FunctionsList/FunctionsList.tsx @@ -224,8 +224,8 @@ export const FunctionsList = () => { disabledMessage="You need additional permissions to create functions" >

- PostgreSQL functions, also known as stored procedures, is a set of SQL and procedural - commands such as declarations, assignments, loops, flow-of-control, etc. + PostgreSQL functions are a set of SQL and procedural commands such as declarations, + assignments, loops, flow-of-control, etc.

It's stored on the database server and can be invoked using the SQL interface. diff --git a/apps/studio/components/interfaces/Docs/Pages/Rpc/Introduction.tsx b/apps/studio/components/interfaces/Docs/Pages/Rpc/Introduction.tsx index 48e4a85380..a618b46b79 100644 --- a/apps/studio/components/interfaces/Docs/Pages/Rpc/Introduction.tsx +++ b/apps/studio/components/interfaces/Docs/Pages/Rpc/Introduction.tsx @@ -7,8 +7,8 @@ const Introduction = () => { content={ <>

- All of your database stored procedures are available on your API. This means you can - build your logic directly into the database (if you're brave enough)! + All of your database functions are available on your API. This means you can build your + logic directly into the database (if you're brave enough)!

The API endpoint supports POST (and in some cases GET) to execute the function.

diff --git a/apps/studio/components/interfaces/ProjectAPIDocs/ProjectAPIDocs.constants.ts b/apps/studio/components/interfaces/ProjectAPIDocs/ProjectAPIDocs.constants.ts index 5480c11140..b3caaed05f 100644 --- a/apps/studio/components/interfaces/ProjectAPIDocs/ProjectAPIDocs.constants.ts +++ b/apps/studio/components/interfaces/ProjectAPIDocs/ProjectAPIDocs.constants.ts @@ -14,7 +14,7 @@ export const DOCS_MENU = [ { name: 'Connect', key: API_DOCS_CATEGORIES.INTRODUCTION }, { name: 'User Management', key: API_DOCS_CATEGORIES.USER_MANAGEMENT }, { name: 'Tables & Views', key: API_DOCS_CATEGORIES.ENTITIES }, - { name: 'Stored Procedures', key: API_DOCS_CATEGORIES.STORED_PROCEDURES }, + { name: 'Database Functions', key: API_DOCS_CATEGORIES.STORED_PROCEDURES }, { name: 'Storage', key: API_DOCS_CATEGORIES.STORAGE }, { name: 'Edge Functions', key: API_DOCS_CATEGORIES.EDGE_FUNCTIONS }, { name: 'Realtime', key: API_DOCS_CATEGORIES.REALTIME }, @@ -471,13 +471,13 @@ const { data, error } = await supabase \`) `, }, - // Stored Procedures + // Database Functions storedProceduresIntroduction: { key: 'stored-procedures-introduction', category: API_DOCS_CATEGORIES.STORED_PROCEDURES, title: 'Introduction', description: ` -All of your database stored procedures are available on your API. This means you can build your logic directly into the database (if you're brave enough)! +All of your database functions are available on your API. This means you can build your logic directly into the database (if you're brave enough)! The API endpoint supports POST (and in some cases GET) to execute the function. `, diff --git a/apps/studio/components/interfaces/ProjectAPIDocs/SecondLevelNav.tsx b/apps/studio/components/interfaces/ProjectAPIDocs/SecondLevelNav.tsx index cbe1ed9966..e0b3c9d1b7 100644 --- a/apps/studio/components/interfaces/ProjectAPIDocs/SecondLevelNav.tsx +++ b/apps/studio/components/interfaces/ProjectAPIDocs/SecondLevelNav.tsx @@ -40,13 +40,13 @@ const StoredProceduresSecondLevelNav = () => { return ( ( )} /> diff --git a/apps/studio/components/interfaces/SQLEditor/SQLEditor.queries.ts b/apps/studio/components/interfaces/SQLEditor/SQLEditor.queries.ts index 392b5b9409..775c121953 100644 --- a/apps/studio/components/interfaces/SQLEditor/SQLEditor.queries.ts +++ b/apps/studio/components/interfaces/SQLEditor/SQLEditor.queries.ts @@ -92,7 +92,7 @@ for each row execute id: 9, type: 'template', title: 'Increment field value', - description: 'Update a field with incrementing value using stored procedure.', + description: 'Update a field with incrementing value using a function.', sql: ` create function increment(row_id int) returns void as diff --git a/apps/studio/components/interfaces/Settings/API/PostgrestConfig.tsx b/apps/studio/components/interfaces/Settings/API/PostgrestConfig.tsx index cc87a0c80f..8c4e5f6734 100644 --- a/apps/studio/components/interfaces/Settings/API/PostgrestConfig.tsx +++ b/apps/studio/components/interfaces/Settings/API/PostgrestConfig.tsx @@ -469,7 +469,7 @@ export const PostgrestConfig = () => { @@ -607,7 +607,7 @@ export const PostgrestConfig = () => { diff --git a/apps/studio/components/layouts/DocsLayout/DocsLayout.utils.tsx b/apps/studio/components/layouts/DocsLayout/DocsLayout.utils.tsx index d1586daaa8..d37fcf7ce1 100644 --- a/apps/studio/components/layouts/DocsLayout/DocsLayout.utils.tsx +++ b/apps/studio/components/layouts/DocsLayout/DocsLayout.utils.tsx @@ -66,7 +66,7 @@ export const generateDocsMenu = ( ], }, { - title: 'Stored Procedures', + title: 'Functions', items: [ { name: 'Introduction', diff --git a/apps/ui-library/supabase/config.toml b/apps/ui-library/supabase/config.toml index 3722784111..bad426d344 100644 --- a/apps/ui-library/supabase/config.toml +++ b/apps/ui-library/supabase/config.toml @@ -8,12 +8,12 @@ project_id = "ui-library" enabled = true # Port to use for the API URL. port = 54321 -# Schemas to expose in your API. Tables, views and stored procedures in this schema will get API +# Schemas to expose in your API. Tables, views and functions in this schema will get API # endpoints. `public` and `graphql_public` schemas are included by default. schemas = ["public", "graphql_public"] # Extra schemas to add to the search_path of every request. extra_search_path = ["public", "extensions"] -# The maximum number of rows returns from a view, table, or stored procedure. Limits payload size +# The maximum number of rows returned from a view, table, or function. Limits payload size # for accidental or malicious requests. max_rows = 1000 diff --git a/apps/www/supabase/config.toml b/apps/www/supabase/config.toml index 006983a038..bfc17b6c3e 100644 --- a/apps/www/supabase/config.toml +++ b/apps/www/supabase/config.toml @@ -5,12 +5,12 @@ project_id = "obuldanrptloktxcffvn" [api] # Port to use for the API URL. port = 54321 -# Schemas to expose in your API. Tables, views and stored procedures in this schema will get API +# Schemas to expose in your API. Tables, views and functions in this schema will get API # endpoints. public and storage are always included. schemas = [] # Extra schemas to add to the search_path of every request. extra_search_path = ["extensions"] -# The maximum number of rows returns from a view, table, or stored procedure. Limits payload size +# The maximum number of rows returned from a view, table, or function. Limits payload size # for accidental or malicious requests. max_rows = 1000 diff --git a/e2e/studio/supabase/config.toml b/e2e/studio/supabase/config.toml index 4450397aae..2eeac96ead 100644 --- a/e2e/studio/supabase/config.toml +++ b/e2e/studio/supabase/config.toml @@ -8,12 +8,12 @@ project_id = "studio" enabled = true # Port to use for the API URL. port = 54321 -# Schemas to expose in your API. Tables, views and stored procedures in this schema will get API +# Schemas to expose in your API. Tables, views and functions in this schema will get API # endpoints. `public` and `graphql_public` schemas are included by default. schemas = ["public", "graphql_public"] # Extra schemas to add to the search_path of every request. extra_search_path = ["public", "extensions"] -# The maximum number of rows returns from a view, table, or stored procedure. Limits payload size +# The maximum number of rows returned from a view, table, or function. Limits payload size # for accidental or malicious requests. max_rows = 1000 diff --git a/examples/ai/edge-functions/supabase/config.toml b/examples/ai/edge-functions/supabase/config.toml index d383e8c946..2cea162eae 100644 --- a/examples/ai/edge-functions/supabase/config.toml +++ b/examples/ai/edge-functions/supabase/config.toml @@ -6,12 +6,12 @@ project_id = "ai-in-edge-functions" enabled = true # Port to use for the API URL. port = 54321 -# Schemas to expose in your API. Tables, views and stored procedures in this schema will get API +# Schemas to expose in your API. Tables, views and functions in this schema will get API # endpoints. `public` is always included. schemas = ["public", "graphql_public"] # Extra schemas to add to the search_path of every request. `public` is always included. extra_search_path = ["public", "extensions"] -# The maximum number of rows returns from a view, table, or stored procedure. Limits payload size +# The maximum number of rows returned from a view, table, or function. Limits payload size # for accidental or malicious requests. max_rows = 1000 diff --git a/examples/auth/hono-full/supabase/config.toml b/examples/auth/hono-full/supabase/config.toml index e929cc2e1d..a6d13675aa 100644 --- a/examples/auth/hono-full/supabase/config.toml +++ b/examples/auth/hono-full/supabase/config.toml @@ -8,12 +8,12 @@ project_id = "hono" enabled = true # Port to use for the API URL. port = 54321 -# Schemas to expose in your API. Tables, views and stored procedures in this schema will get API +# Schemas to expose in your API. Tables, views and functions in this schema will get API # endpoints. `public` and `graphql_public` schemas are included by default. schemas = ["public", "graphql_public"] # Extra schemas to add to the search_path of every request. extra_search_path = ["public", "extensions"] -# The maximum number of rows returns from a view, table, or stored procedure. Limits payload size +# The maximum number of rows returned from a view, table, or function. Limits payload size # for accidental or malicious requests. max_rows = 1000 diff --git a/examples/auth/nextjs-full/supabase/config.toml b/examples/auth/nextjs-full/supabase/config.toml index 3ef6eb6532..8b654f564b 100644 --- a/examples/auth/nextjs-full/supabase/config.toml +++ b/examples/auth/nextjs-full/supabase/config.toml @@ -6,12 +6,12 @@ project_id = "nextjs" enabled = true # Port to use for the API URL. port = 54321 -# Schemas to expose in your API. Tables, views and stored procedures in this schema will get API +# Schemas to expose in your API. Tables, views and functions in this schema will get API # endpoints. public and storage are always included. schemas = ["public", "storage", "graphql_public"] # Extra schemas to add to the search_path of every request. public is always included. extra_search_path = ["public", "extensions"] -# The maximum number of rows returns from a view, table, or stored procedure. Limits payload size +# The maximum number of rows returned from a view, table, or function. Limits payload size # for accidental or malicious requests. max_rows = 1000 diff --git a/examples/caching/with-nextjs-13/supabase/config.toml b/examples/caching/with-nextjs-13/supabase/config.toml index 66de6aec1f..897b9c4257 100644 --- a/examples/caching/with-nextjs-13/supabase/config.toml +++ b/examples/caching/with-nextjs-13/supabase/config.toml @@ -6,12 +6,12 @@ project_id = "with-nextjs-13" enabled = true # Port to use for the API URL. port = 54321 -# Schemas to expose in your API. Tables, views and stored procedures in this schema will get API +# Schemas to expose in your API. Tables, views and functions in this schema will get API # endpoints. `public` is always included. schemas = ["public", "graphql_public"] # Extra schemas to add to the search_path of every request. `public` is always included. extra_search_path = ["public", "extensions"] -# The maximum number of rows returns from a view, table, or stored procedure. Limits payload size +# The maximum number of rows returned from a view, table, or function. Limits payload size # for accidental or malicious requests. max_rows = 1000 diff --git a/examples/caching/with-react-query-nextjs-14/supabase/config.toml b/examples/caching/with-react-query-nextjs-14/supabase/config.toml index 582f4d946b..e548dff692 100644 --- a/examples/caching/with-react-query-nextjs-14/supabase/config.toml +++ b/examples/caching/with-react-query-nextjs-14/supabase/config.toml @@ -6,12 +6,12 @@ project_id = "supa-react-query" enabled = true # Port to use for the API URL. port = 54321 -# Schemas to expose in your API. Tables, views and stored procedures in this schema will get API +# Schemas to expose in your API. Tables, views and functions in this schema will get API # endpoints. `public` is always included. schemas = ["public", "graphql_public"] # Extra schemas to add to the search_path of every request. `public` is always included. extra_search_path = ["public", "extensions"] -# The maximum number of rows returns from a view, table, or stored procedure. Limits payload size +# The maximum number of rows returned from a view, table, or function. Limits payload size # for accidental or malicious requests. max_rows = 1000 diff --git a/examples/clerk/supabase/config.toml b/examples/clerk/supabase/config.toml index ff6288b4ba..006f254977 100644 --- a/examples/clerk/supabase/config.toml +++ b/examples/clerk/supabase/config.toml @@ -6,12 +6,12 @@ project_id = "clerk" enabled = true # Port to use for the API URL. port = 54321 -# Schemas to expose in your API. Tables, views and stored procedures in this schema will get API +# Schemas to expose in your API. Tables, views and functions in this schema will get API # endpoints. public and storage are always included. schemas = ["public", "storage", "graphql_public"] # Extra schemas to add to the search_path of every request. public is always included. extra_search_path = ["public", "extensions"] -# The maximum number of rows returns from a view, table, or stored procedure. Limits payload size +# The maximum number of rows returned from a view, table, or function. Limits payload size # for accidental or malicious requests. max_rows = 1000 diff --git a/examples/edge-functions/supabase/config.toml b/examples/edge-functions/supabase/config.toml index 1a5297f00e..7b00c66136 100644 --- a/examples/edge-functions/supabase/config.toml +++ b/examples/edge-functions/supabase/config.toml @@ -6,12 +6,12 @@ project_id = "edge-functions" enabled = true # Port to use for the API URL. port = 54321 -# Schemas to expose in your API. Tables, views and stored procedures in this schema will get API +# Schemas to expose in your API. Tables, views and functions in this schema will get API # endpoints. `public` is always included. schemas = ["public", "graphql_public"] # Extra schemas to add to the search_path of every request. `public` is always included. extra_search_path = ["public", "extensions"] -# The maximum number of rows returns from a view, table, or stored procedure. Limits payload size +# The maximum number of rows returned from a view, table, or function. Limits payload size # for accidental or malicious requests. max_rows = 1000 diff --git a/examples/realtime/flutter-figma-clone/supabase/config.toml b/examples/realtime/flutter-figma-clone/supabase/config.toml index e89e2f8e9c..fb515d7c1e 100644 --- a/examples/realtime/flutter-figma-clone/supabase/config.toml +++ b/examples/realtime/flutter-figma-clone/supabase/config.toml @@ -6,12 +6,12 @@ project_id = "design" enabled = true # Port to use for the API URL. port = 54321 -# Schemas to expose in your API. Tables, views and stored procedures in this schema will get API +# Schemas to expose in your API. Tables, views and functions in this schema will get API # endpoints. `public` and `graphql_public` schemas are included by default. schemas = ["public", "graphql_public"] # Extra schemas to add to the search_path of every request. extra_search_path = ["public", "extensions"] -# The maximum number of rows returns from a view, table, or stored procedure. Limits payload size +# The maximum number of rows returned from a view, table, or function. Limits payload size # for accidental or malicious requests. max_rows = 1000 diff --git a/examples/slack-clone/nextjs-slack-clone-dotenvx/supabase/config.toml b/examples/slack-clone/nextjs-slack-clone-dotenvx/supabase/config.toml index 515f2264c7..1acefa2024 100644 --- a/examples/slack-clone/nextjs-slack-clone-dotenvx/supabase/config.toml +++ b/examples/slack-clone/nextjs-slack-clone-dotenvx/supabase/config.toml @@ -6,12 +6,12 @@ project_id = "slack-clone" enabled = true # Port to use for the API URL. port = 54321 -# Schemas to expose in your API. Tables, views and stored procedures in this schema will get API +# Schemas to expose in your API. Tables, views and functions in this schema will get API # endpoints. public and storage are always included. schemas = ["public"] # Extra schemas to add to the search_path of every request. public is always included. extra_search_path = ["public", "extensions"] -# The maximum number of rows returns from a view, table, or stored procedure. Limits payload size +# The maximum number of rows returned from a view, table, or function. Limits payload size # for accidental or malicious requests. max_rows = 1000 diff --git a/examples/slack-clone/nextjs-slack-clone/supabase/config.toml b/examples/slack-clone/nextjs-slack-clone/supabase/config.toml index db141ea5b1..7ec63029c1 100644 --- a/examples/slack-clone/nextjs-slack-clone/supabase/config.toml +++ b/examples/slack-clone/nextjs-slack-clone/supabase/config.toml @@ -6,12 +6,12 @@ project_id = "slack-clone" enabled = true # Port to use for the API URL. port = 54321 -# Schemas to expose in your API. Tables, views and stored procedures in this schema will get API +# Schemas to expose in your API. Tables, views and functions in this schema will get API # endpoints. public and storage are always included. schemas = ["public"] # Extra schemas to add to the search_path of every request. public is always included. extra_search_path = ["public", "extensions"] -# The maximum number of rows returns from a view, table, or stored procedure. Limits payload size +# The maximum number of rows returned from a view, table, or function. Limits payload size # for accidental or malicious requests. max_rows = 1000 diff --git a/examples/todo-list/nextjs-todo-list/supabase/config.toml b/examples/todo-list/nextjs-todo-list/supabase/config.toml index 0d941ad62f..ac4d9590d2 100644 --- a/examples/todo-list/nextjs-todo-list/supabase/config.toml +++ b/examples/todo-list/nextjs-todo-list/supabase/config.toml @@ -6,12 +6,12 @@ project_id = "nextjs-todo-list" enabled = true # Port to use for the API URL. port = 54321 -# Schemas to expose in your API. Tables, views and stored procedures in this schema will get API +# Schemas to expose in your API. Tables, views and functions in this schema will get API # endpoints. `public` and `graphql_public` are included by default. schemas = ["public", "graphql_public"] # Extra schemas to add to the search_path of every request. extra_search_path = ["public", "extensions"] -# The maximum number of rows returns from a view, table, or stored procedure. Limits payload size +# The maximum number of rows returned from a view, table, or function. Limits payload size # for accidental or malicious requests. max_rows = 1000 diff --git a/examples/user-management/expo-push-notifications/supabase/config.toml b/examples/user-management/expo-push-notifications/supabase/config.toml index 617f72e9c6..b75fd1de43 100644 --- a/examples/user-management/expo-push-notifications/supabase/config.toml +++ b/examples/user-management/expo-push-notifications/supabase/config.toml @@ -6,12 +6,12 @@ project_id = "expo-user-management" enabled = true # Port to use for the API URL. port = 54321 -# Schemas to expose in your API. Tables, views and stored procedures in this schema will get API +# Schemas to expose in your API. Tables, views and functions in this schema will get API # endpoints. public and storage are always included. schemas = ["public", "storage", "graphql_public"] # Extra schemas to add to the search_path of every request. public is always included. extra_search_path = ["public", "extensions"] -# The maximum number of rows returns from a view, table, or stored procedure. Limits payload size +# The maximum number of rows returned from a view, table, or function. Limits payload size # for accidental or malicious requests. max_rows = 1000 diff --git a/examples/user-management/expo-user-management/supabase/config.toml b/examples/user-management/expo-user-management/supabase/config.toml index eada7f61cc..a321bcc1e6 100644 --- a/examples/user-management/expo-user-management/supabase/config.toml +++ b/examples/user-management/expo-user-management/supabase/config.toml @@ -6,12 +6,12 @@ project_id = "expo-user-management" enabled = true # Port to use for the API URL. port = 54321 -# Schemas to expose in your API. Tables, views and stored procedures in this schema will get API +# Schemas to expose in your API. Tables, views and functions in this schema will get API # endpoints. public and storage are always included. schemas = ["public", "storage", "graphql_public"] # Extra schemas to add to the search_path of every request. public is always included. extra_search_path = ["public", "extensions"] -# The maximum number of rows returns from a view, table, or stored procedure. Limits payload size +# The maximum number of rows returned from a view, table, or function. Limits payload size # for accidental or malicious requests. max_rows = 1000 diff --git a/examples/user-management/flutter-user-management/supabase/config.toml b/examples/user-management/flutter-user-management/supabase/config.toml index 29eb2b255d..8bbe526224 100644 --- a/examples/user-management/flutter-user-management/supabase/config.toml +++ b/examples/user-management/flutter-user-management/supabase/config.toml @@ -6,12 +6,12 @@ project_id = "flutter-user-management" enabled = true # Port to use for the API URL. port = 54321 -# Schemas to expose in your API. Tables, views and stored procedures in this schema will get API +# Schemas to expose in your API. Tables, views and functions in this schema will get API # endpoints. public and storage are always included. schemas = ["public", "storage", "graphql_public"] # Extra schemas to add to the search_path of every request. public is always included. extra_search_path = ["public", "extensions"] -# The maximum number of rows returns from a view, table, or stored procedure. Limits payload size +# The maximum number of rows returned from a view, table, or function. Limits payload size # for accidental or malicious requests. max_rows = 1000 diff --git a/examples/user-management/nextjs-user-management/supabase/config.toml b/examples/user-management/nextjs-user-management/supabase/config.toml index 19f3156d01..34e7da418d 100644 --- a/examples/user-management/nextjs-user-management/supabase/config.toml +++ b/examples/user-management/nextjs-user-management/supabase/config.toml @@ -6,12 +6,12 @@ project_id = "nextjs-user-management" enabled = true # Port to use for the API URL. port = 54321 -# Schemas to expose in your API. Tables, views and stored procedures in this schema will get API +# Schemas to expose in your API. Tables, views and functions in this schema will get API # endpoints. `public` and `graphql_public` are included by default. schemas = ["public"] # Extra schemas to add to the search_path of every request. extra_search_path = ["public", "extensions"] -# The maximum number of rows returns from a view, table, or stored procedure. Limits payload size +# The maximum number of rows returned from a view, table, or function. Limits payload size # for accidental or malicious requests. max_rows = 1000 diff --git a/examples/user-management/swift-user-management/supabase/config.toml b/examples/user-management/swift-user-management/supabase/config.toml index 746cb812b5..c45dd8fb36 100644 --- a/examples/user-management/swift-user-management/supabase/config.toml +++ b/examples/user-management/swift-user-management/supabase/config.toml @@ -6,12 +6,12 @@ project_id = "swift-user-management" enabled = true # Port to use for the API URL. port = 54321 -# Schemas to expose in your API. Tables, views and stored procedures in this schema will get API +# Schemas to expose in your API. Tables, views and functions in this schema will get API # endpoints. public and storage are always included. schemas = ["public", "storage", "graphql_public"] # Extra schemas to add to the search_path of every request. public is always included. extra_search_path = ["public", "extensions"] -# The maximum number of rows returns from a view, table, or stored procedure. Limits payload size +# The maximum number of rows returned from a view, table, or function. Limits payload size # for accidental or malicious requests. max_rows = 1000 diff --git a/packages/ui-patterns/src/SqlToRest/sql-to-rest.tsx b/packages/ui-patterns/src/SqlToRest/sql-to-rest.tsx index 8456cd4bc2..3fff6e9293 100644 --- a/packages/ui-patterns/src/SqlToRest/sql-to-rest.tsx +++ b/packages/ui-patterns/src/SqlToRest/sql-to-rest.tsx @@ -315,7 +315,7 @@ export default function SqlToRest({
PostgREST doesn't support this query. If you're sure the syntax is correct and are - unable to modify it, wrap it in a stored procedure and call it using the{' '} + unable to modify it, wrap it in a database function and call it using the{' '} RPC {' '} diff --git a/supabase/config.toml b/supabase/config.toml index aff7207cb1..b03bf67c0d 100644 --- a/supabase/config.toml +++ b/supabase/config.toml @@ -8,12 +8,12 @@ project_id = "xguihxuzqibwxjnimxev" [api] # Port to use for the API URL. port = 54321 -# Schemas to expose in your API. Tables, views and stored procedures in this schema will get API +# Schemas to expose in your API. Tables, views and functions in this schema will get API # endpoints. public and storage are always included. schemas = ["public", "content", "storage", "graphql_public"] # Extra schemas to add to the search_path of every request. public is always included. extra_search_path = ["public", "extensions"] -# The maximum number of rows returns from a view, table, or stored procedure. Limits payload size +# The maximum number of rows returned from a view, table, or function. Limits payload size # for accidental or malicious requests. max_rows = 1000