supabase-client-core
Core types for supabase-client: connection, config, errors, response.
Note: This crate is part of the
supabase-client-sdkworkspace. Most users should depend onsupabase-client-sdkwith the appropriate feature flag rather than using this crate directly.
Key Features
SupabaseClient— main client struct holding HTTP client and configurationSupabaseConfig— connection URL, API key, schema, and optional database pool settingsSupabaseError— unified error type across all sub-cratesSupabaseResponse— response wrapper with rows, count, and statusRow— dynamic row type backed byserde_json::Valuerow!macro — convenient row construction:row![("name", "Tokyo")]- Optional
direct-sqlfeature forPoolConfigand direct PostgreSQL access via sqlx - Platform abstraction layer for native and WASM targets
Usage
use ;
let config = new;
let client = new?;
License
Licensed under either of Apache License, Version 2.0 or MIT license at your option.