Skip to main content

Crate rp_supabase_client

Crate rp_supabase_client 

Source
Expand description

Supabase PostgREST client and the runtime for generated schema bindings.

The default client feature provides authentication and response decoding. Disable default features to depend on the generated-binding runtime (schema) alone.

Re-exports§

pub use rp_postgrest;
pub use rp_postgrest_error;
pub use rp_supabase_auth;

Modules§

schema
Serialization and PostgREST integration for generated database bindings.

Macros§

include_schema
Include bindings produced by a consumer’s build script in OUT_DIR.
key
Construct a lossless schema key, or its name type with key!(type identifier).
projection
Define a named result shape from generated columns and typed relationships.
select
Construct a typed query-local selection from a relation and selected fields.

Structs§

Postgrest
An immutable client configuration sharing one HTTP connection pool.

Enums§

Error
A configuration, request, or response failure, without nested result layers.
SupabaseClientError

Constants§

SUPABASE_KEY

Functions§

anonymous_client
Create an anonymous client using a default HTTP transport.
anonymous_client_with_client
Create an anonymous client retaining the supplied HTTP pool and policies.
new_authenticated
Create an authenticated client stream using a default HTTP transport.
new_authenticated_with_client
Create an authenticated stream sharing the supplied HTTP transport for REST, login and every token refresh. Request credentials do not alter its defaults.