Types for the schema from the type generator
Postgres schema to switch to. Must be a string
literal, the same one passed to the constructor. If the schema is not
"public"
, this must be supplied manually.
Creates a PostgREST client.
URL of the PostgREST endpoint
Named parameters
Custom fetch
Custom headers
Postgres schema to switch to
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
Perform a function call.
The function name to call
The arguments to pass to the function call
Named parameters
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.
When set to true
, the function will be called with
read-only access mode.
When 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
PostgREST client.