Skip to content

Supabase Database

Non-Visible component
Category Requires Version
Storage API 21, Android 5.0 Lollipop 1

Overview

A non-visible component that provides database operations via Supabase PostgREST API. Supports query building with filters, ordering, and pagination, CRUD operations, and RPC function calls.

Permissions

Events

Error Occurred

Fired when any operation fails

Params
operation Text
status Code Number
message Text

Got Function Result

Fired after a successful RPC function call

Params
result Any

Got Rows

Fired after a Select or RawQuery with the resulting rows

Params
rows List
operation Text

Row Inserted

Fired after a successful Insert with the returned row

Params
row Dictionary

Rows Deleted

Fired after a successful Delete with deleted rows

Params
rows List
count Number

Rows Inserted

Fired after a successful BulkInsert with the returned rows

Params
rows List

Rows Updated

Fired after a successful Update with affected rows

Params
rows List
count Number

Methods

Add Filter

Add a PostgREST filter. Operators: eq, neq, gt, gte, lt, lte, like, ilike, is, in, cs, cd, ov, fts, plfts, phfts, wfts. Operators are passed through to the server without validation.

Params
column Text
operator Text
value Text

Bulk Insert

Insert multiple rows into the table

Params
data List

Call Function

Call a Supabase database function (RPC)

Params
function Name Text
params Dictionary

Clear Query

Clear all query builder state

Delete

Delete rows matching the current filters. Requires at least one filter to prevent accidental full-table deletes.

Insert

Insert a new row into the table

Params
data Dictionary

Raw Query

Execute a raw query with custom PostgREST query parameters

Params
table Text
query String Text

Select

Select rows from the table using current builder state

Set Columns

Set which columns to return (comma-separated)

Params
columns Text

Set Limit

Set the maximum number of rows to return

Params
limit Number

Set Offset

Set the number of rows to skip (for pagination)

Params
offset Number

Set Order

Set the ordering for results

Params
column Text
ascending Boolean

Set Table

Set the target table for the next operation

Params
table Text

Update

Update rows matching the current filters. Requires at least one filter to prevent accidental full-table updates.

Params
data Dictionary

Properties

Access Token

Text ➖ Read Write - Blocks

JWT auth token from SupabaseAuthentication (optional, enables RLS). Set at runtime from SupabaseAuthentication.AccessToken after sign-in.

Default Schema

Text Default: public ➖ Read Write - Designer Blocks

The default database schema

Project URL

Text ➖ Read Write - Designer Blocks

The Supabase project URL (e.g. https://xxx.supabase.co)

Publishable API Key

Text ➖ Read Write - Designer Blocks

The Supabase publishable API key