Supabase
App · Databases · 6 actions
List, insert, update, and delete rows in your Supabase tables, call database functions, and start a workflow when a row is added.
Actions
| Action | What it does |
|---|---|
| Call a database function | Run one of your project's database functions and get back what it returns. |
| Delete rows from a table | Permanently delete every row in a Supabase table that matches your conditions. |
| Insert or update a row | Add a row to a Supabase table, or, if a row with the same key is already there, overwrite that row's columns with the values you give. |
| Insert row into a table | Insert a new row into a Supabase table. |
| List rows from a table | Get rows from a Supabase table, with optional filters to narrow the results. |
| Update rows in a table | Update every row in a Supabase table that matches your conditions. |
Call a database function
Run one of your project's database functions and get back what it returns. A function can change or delete data as well as read it, so check what it does before you use it here.
Inputs
- Function name
functiontextRequired - The function's name as it is in your database, such as get_open_orders. It must be in the public schema.
- Inputs
argumentsobject - The function's inputs by name, given as name-and-value pairs (for example, {"customer_id": 42}). Leave blank for a function that takes none.
Outputs
resultlist- What the function returned: a value, a row, or a list of rows.
Example output
{
"result": [
{
"id": 7,
"status": "open"
}
]
}Delete rows from a table
Permanently delete every row in a Supabase table that matches your conditions. Deleted rows can't be brought back.
Inputs
- Table name
tabletextRequired - The name of the table to delete rows from.
- Match conditions
matchobjectRequired - Only delete rows where these columns exactly equal these values, given as column-and-value pairs (for example, {"id": 42}).
Outputs
rowslist- The rows that were deleted.
Example output
{
"rows": [
{
"id": 4
}
]
}Insert or update a row
Add a row to a Supabase table, or, if a row with the same key is already there, overwrite that row's columns with the values you give. Columns you leave out keep their values.
Inputs
- Table name
tabletextRequired - The name of the table to save the row in.
- Row
rowobjectRequired - The row's columns and values, including the ones that identify it. Pick a table and its columns appear as fields to fill in; if the table comes from an earlier step, enter column-and-value pairs yourself (for example, {"id": 42, "status": "paid"}).
- Columns that identify the row
match_columnslist - The columns that say whether the row is already there, such as email. They must be the table's primary key or have a unique constraint. Leave empty to use the primary key.
Outputs
rowobject- The row as it is now saved.
Example output
{
"row": {
"id": 42,
"status": "paid"
}
}Insert row into a table
Insert a new row into a Supabase table.
Inputs
- Table name
tabletextRequired - The name of the table to add the row to.
- New row
rowobjectRequired - The new row's columns and values. Pick a table and its columns appear as fields to fill in; if the table comes from an earlier step, enter column-and-value pairs yourself (for example, {"name": "Ada", "email": "ada@example.com"}).
Outputs
rowobject- Inserted row data.
Example output
{
"row": {
"id": 2,
"name": "Inserted row"
}
}List rows from a table
Get rows from a Supabase table, with optional filters to narrow the results.
Inputs
- Table name
tabletextRequired - The name of the table to read from.
- Columns to return
columnslist - The columns to return. Pick from the table's columns; leave empty to return every column.
- Match conditions
matchobject - Only return rows where these columns exactly equal these values, given as column-and-value pairs (for example, {"status": "active"}). Leave blank to return every row.
- Maximum rows
limitnumber - The most rows to return. Leave blank to return all matching rows.
Outputs
rowslist
Example output
{
"rows": [
{
"id": 1,
"name": "Sample"
}
]
}Update rows in a table
Update every row in a Supabase table that matches your conditions. The columns you give replace the values already there.
Inputs
- Table name
tabletextRequired - The name of the table to update.
- Match conditions
matchobjectRequired - Only update rows where these columns exactly equal these values, given as column-and-value pairs (for example, {"id": 42}).
- New values
updatesobjectRequired - The columns to change and their new values, given as column-and-value pairs (for example, {"status": "done"}).
Outputs
rowslist- The rows that were updated, with their new values.
Example output
{
"rows": [
{
"id": 3,
"status": "done"
}
]
}