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
Optional fetch?: ((input: RequestInfo | URL, init?: RequestInit) => Promise<Response>)Custom fetch
Optional init: RequestInitOptional headers?: HeadersInitCustom headers
Optional schema?: SchemaNamePostgres schema to switch to
Optional fetchOptional init: RequestInitOptional schemaPerform 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
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
PostgREST client.