Create a new client for use in the browser.
The unique Supabase URL which is supplied when you create a new project in your project dashboard.
The unique Supabase Key which is supplied when you create a new project in your project dashboard.
Optional
options: SupabaseClientOptions<SchemaName>Protected
Optional
accessSupabase Auth allows you to create and manage user sessions for access to data that is secured by access policies.
Protected
authProtected
Optional
changedProtected
Optional
fetchOptional
init: RequestInitProtected
functionsProtected
headersProtected
realtimeProtected
restSupabase Storage allows you to manage user-generated content, such as photos or videos.
Protected
storageProtected
storageProtected
supabaseThe unique Supabase Key which is supplied when you create a new project in your project dashboard.
Protected
supabaseThe unique Supabase URL which is supplied when you create a new project in your project dashboard.
Supabase Functions allows you to deploy and invoke edge functions.
Private
_getPrivate
_handleOptional
token: stringPrivate
_initPrivate
_initOptional
headers: Record<string, string>Optional
fetch: ((input: RequestInfo | URL, init?: RequestInit) => Promise<Response>)Optional
init: RequestInitPrivate
_listenCreates a Realtime channel with Broadcast, Presence, and Postgres Changes.
The name of the Realtime channel.
The options to pass to the Realtime channel.
Perform a query on a table or a view.
The table or view name to query
Perform a query on a table or a view.
The table or view name to query
Returns all Realtime channels.
Unsubscribes and removes Realtime channel from Realtime client.
The name of the Realtime channel.
Perform a function call.
The function name to call
The arguments to pass to the function call
Named parameters
Optional
count?: "exact" | "planned" | "estimated"Count algorithm to use to count rows returned by the function. Only applicable for set-returning functions.
"exact"
: Exact but slow count algorithm. Performs a COUNT(*)
under the
hood.
"planned"
: Approximated but fast count algorithm. Uses the Postgres
statistics under the hood.
"estimated"
: Uses exact count for low numbers and planned count for high
numbers.
Optional
get?: booleanWhen set to true
, the function will be called with
read-only access mode.
Optional
head?: booleanWhen set to true
, data
will not be returned.
Useful if you only need the count.
Select a schema to query or perform an function (rpc) call.
The schema needs to be on the list of exposed schemas inside Supabase.
The schema to query
Generated using TypeDoc
Supabase Client.
An isomorphic Javascript client for interacting with Postgres.