rust_supabase_sdk 0.2.17

An SDK kit for SupaBase so that Rust lovers can use SupaBase with the low level abstracted away. If you want new features tell me and I'll add them.
Documentation
use uuid::Uuid;

pub mod get;
pub mod delete;
pub mod update;
pub mod insert;
pub mod select;
pub mod universals;
pub mod auth;
pub mod count;
pub mod rpc;

#[derive(Debug, Clone)]
pub struct SupabaseClient {
    pub url: String,
    pub api_key: String,
    pub access_token: Option<String>,
}

impl SupabaseClient {
    /// Service role and private key are synonymous
    pub fn new(supabase_url: String, private_key: String, access_token: Option<String>) -> Self {
        Self {
            url: supabase_url,
            api_key: private_key,
            access_token, // Initialize access token
        }
    }
}

pub fn generate_id() -> String {
    Uuid::new_v4().to_string()
}