Skip to main content

Crate wowlab_supabase

Crate wowlab_supabase 

Source
Expand description

Typed client for Supabase’s PostgREST and Storage HTTP APIs.

§Example

use serde::Deserialize;
use wowlab_supabase::{Result, SupabaseClient};

#[derive(Deserialize)]
struct User {
    id: i64,
}

let client = SupabaseClient::new("https://example.supabase.co", "project-api-key")?;
client.get_json("users?select=id", "public").await

Modules§

client 🔒
errors 🔒
retry 🔒
storage 🔒

Structs§

RetryConfig
Bounded retry policy for Supabase operations.
SupabaseClient
HTTP client for the Supabase PostgREST and Storage APIs.
SupabaseError
Failure returned by the Supabase client.

Functions§

with_retry
Runs an asynchronous Supabase operation using the configured retry policy.

Type Aliases§

Result
Result returned by Supabase client operations.