[under evaluation] Extension component for Supabase. Provides connectivity to Supabase services including Auth, Database, Storage, Realtime, and RPC

Supabase

Extension component for Supabase. Provides connectivity to Supabase services including Auth, Database, Storage, Realtime, and RPC.











Events

ClientInitialized

Event triggered when the Supabase client is successfully initialized

TableSet

Event triggered when a table is set for database operations

Parameters

Parameter Type
tableName text

ColumnsSet

Event triggered when columns are set for database operations

Parameters

Parameter Type
columns text

BucketSet

Event triggered when a bucket is set for storage operations

Parameters

Parameter Type
bucketName text

ChannelSet

Event triggered when a channel is set for realtime operations

Parameters

Parameter Type
channelName text

FunctionSet

Event triggered when a function is set for RPC operations

Parameters

Parameter Type
functionName text

SignUpSuccess

Event triggered when a user signs up successfully

Parameters

Parameter Type
email text
userId text
token text

SignInSuccess

Event triggered when a user signs in successfully

Parameters

Parameter Type
email text
userId text
token text

SignOutSuccess

Event triggered when a user signs out successfully

AuthError

Event triggered when there is an authentication error

Parameters

Parameter Type
error text

SelectSuccess

Event triggered when data is successfully fetched from a table

Parameters

Parameter Type
data list
tableName text
columns text

InsertSuccess

Event triggered when data is successfully inserted into a table

Parameters

Parameter Type
insertedId text
tableName text

UpdateSuccess

Event triggered when data is successfully updated in a table

Parameters

Parameter Type
updatedCount number
tableName text

DeleteSuccess

Event triggered when data is successfully deleted from a table

Parameters

Parameter Type
deletedCount number
tableName text

DatabaseError

Event triggered when there is a database operation error

Parameters

Parameter Type
error text

UploadSuccess

Event triggered when a file is successfully uploaded

Parameters

Parameter Type
publicUrl text
bucketName text
filePath text

DownloadSuccess

Event triggered when a file is successfully downloaded

Parameters

Parameter Type
fileData text
bucketName text
filePath text

PublicUrlSuccess

Event triggered when a public URL is successfully generated

Parameters

Parameter Type
publicUrl text
bucketName text
filePath text

ListFilesSuccess

Event triggered when files are successfully listed

Parameters

Parameter Type
fileList list
bucketName text

StorageError

Event triggered when there is a storage operation error

Parameters

Parameter Type
error text

SubscriptionSuccess

Event triggered when a subscription is successfully created

Parameters

Parameter Type
channelName text
subscriptionType text
tableName text
eventType text

DatabaseChange

Event triggered when a database change is received

Parameters

Parameter Type
channelName text
tableName text
eventType text
payload dictionary

BroadcastReceived

Event triggered when a broadcast message is received

Parameters

Parameter Type
channelName text
eventName text
payload dictionary

BroadcastSent

Event triggered when a broadcast message is sent

Parameters

Parameter Type
channelName text
eventName text

PresenceTracked

Event triggered when presence is tracked

Parameters

Parameter Type
channelName text

PresenceChange

Event triggered when presence state changes

Parameters

Parameter Type
channelName text
joins list
leaves list

RealtimeError

Event triggered when there is a realtime operation error

Parameters

Parameter Type
error text

RPCSuccess

Event triggered when an RPC function is called successfully

Parameters

Parameter Type
result list
functionName text

RPCError

Event triggered when there is an RPC operation error

Parameters

Parameter Type
error text

Methods

InitializeClient

Initialize the Supabase client with the provided URL and key

SetTable

Set the current table for database operations

Parameters

Parameter Type
tableName text

SetColumns

Set the columns to select in database operations (default: *)

Parameters

Parameter Type
columns text

SetBucket

Set the current bucket for storage operations

Parameters

Parameter Type
bucketName text

SetChannel

Set the current channel for realtime operations

Parameters

Parameter Type
channelName text

SetFunction

Set the current RPC function for remote procedure calls

Parameters

Parameter Type
functionName text

SignUp

Sign up a new user with email and password

Parameters

Parameter Type
email text
password text

SignIn

Sign in an existing user with email and password

Parameters

Parameter Type
email text
password text

SignOut

Sign out the currently logged in user

Select

Fetch data from the current Supabase table

SelectFrom

Fetch data from a specific Supabase table with specific columns

Parameters

Parameter Type
tableName text
columns text

Insert

Insert data into the current Supabase table

Parameters

Parameter Type
data dictionary

InsertInto

Insert data into a specific Supabase table

Parameters

Parameter Type
tableName text
data dictionary

Update

Update data in the current Supabase table with a filter

Parameters

Parameter Type
data dictionary
filterColumn text
filterValue text

UpdateTable

Update data in a specific Supabase table with a filter

Parameters

Parameter Type
tableName text
data dictionary
filterColumn text
filterValue text

Delete

Delete data from the current Supabase table with a filter

Parameters

Parameter Type
filterColumn text
filterValue text

DeleteFrom

Delete data from a specific Supabase table with a filter

Parameters

Parameter Type
tableName text
filterColumn text
filterValue text

UploadFile

Upload a file to the current Supabase storage bucket

Parameters

Parameter Type
filePath text
fileData text

UploadToBucket

Upload a file to a specific Supabase storage bucket

Parameters

Parameter Type
bucketName text
filePath text
fileData text

DownloadFile

Download a file from the current Supabase storage bucket

Parameters

Parameter Type
filePath text

DownloadFromBucket

Download a file from a specific Supabase storage bucket

Parameters

Parameter Type
bucketName text
filePath text

GetPublicUrl

Get the public URL for a file in the current Supabase storage bucket

Parameters

Parameter Type
filePath text

GetPublicUrlFromBucket

Get the public URL for a file in a specific Supabase storage bucket

Parameters

Parameter Type
bucketName text
filePath text

ListFiles

List all files in the current Supabase storage bucket

ListFilesInBucket

List all files in a specific Supabase storage bucket

Parameters

Parameter Type
bucketName text

SubscribeToChanges

Subscribe to changes in the current Supabase table

Parameters

Parameter Type
eventType text

SubscribeToTableChanges

Subscribe to changes in a specific Supabase table

Parameters

Parameter Type
channelName text
tableName text
eventType text

SubscribeToBroadcast

Subscribe to broadcast messages on the current channel

Parameters

Parameter Type
eventName text

SubscribeToChannelBroadcast

Subscribe to broadcast messages on a specific channel

Parameters

Parameter Type
channelName text
eventName text

SendBroadcast

Send a broadcast message on the current channel

Parameters

Parameter Type
eventName text
payload dictionary

SendChannelBroadcast

Send a broadcast message on a specific channel

Parameters

Parameter Type
channelName text
eventName text
payload dictionary

TrackPresence

Track user presence on the current channel

Parameters

Parameter Type
state dictionary

TrackChannelPresence

Track user presence on a specific channel

Parameters

Parameter Type
channelName text
state dictionary

CallRPC

Call a PostgreSQL function through RPC with parameters

Parameters

Parameter Type
parameters dictionary

CallFunction

Call a specific PostgreSQL function through RPC with parameters

Parameters

Parameter Type
functionName text
parameters dictionary

CallSecureRPC

Call an obfuscated RPC function for enhanced security

Parameters

Parameter Type
obfuscatedFunctionName text
obfuscatedParameters dictionary

SumAll

Returns the sum of the given list of integers.

Parameters

Parameter Type
listOfInts list

Returns: number

MakeHttpRequest

Demonstrates how to use the OkHttp dependency to make HTTP requests

Parameters

Parameter Type
url text

DecodeJwtToken

Demonstrates how to use the JWT dependency to decode tokens

Parameters

Parameter Type
token text

Properties

SupabaseUrl

The Supabase project URL (e.g., https://your-project.supabase.co)

SupabaseKey

The Supabase API key (anon or service key)

IsConnected

Returns whether the Supabase client is connected

UserEmail

Returns the email of the currently logged in user

UserId

Returns the ID of the currently logged in user

UserToken

Returns the JWT token of the currently logged in user

UserLoggedIn

Returns whether a user is currently logged in

CurrentTable

Returns the currently selected table for database operations

CurrentColumns

Returns the currently selected columns for database operations

CurrentBucket

Returns the currently selected storage bucket

CurrentChannel

Returns the currently selected realtime channel

CurrentFunction

Returns the currently selected RPC function

SupabaseUrl

The Supabase project URL (e.g., https://your-project.supabase.co)

SupabaseUrl

The Supabase project URL (e.g., https://your-project.supabase.co)

SupabaseKey

The Supabase API key (anon or service key)

SupabaseKey

The Supabase API key (anon or service key)
com.ali.supabase.aix (20.6 KB)

1 Like
  • would help developers to show some blocks in usage
  • remove spaces in some of the properties ? e.g. "SupabaseKey to" > "SupabaseKeyTo" - sorry, blocks generator issue...
1 Like