pub struct SupabaseClient { /* private fields */ }Expand description
Supabase REST client for SDK store adapters.
Implementations§
Source§impl SupabaseClient
impl SupabaseClient
Sourcepub fn new<T>(config: SupabaseStoreConfig, transport: T) -> Selfwhere
T: SupabaseHttpTransport + 'static,
pub fn new<T>(config: SupabaseStoreConfig, transport: T) -> Selfwhere
T: SupabaseHttpTransport + 'static,
Creates a Supabase client from config and transport.
Creates a Supabase client with a shared transport.
Sourcepub fn config(&self) -> &SupabaseStoreConfig
pub fn config(&self) -> &SupabaseStoreConfig
Returns the client config.
Sourcepub fn rpc<T>(
&self,
function_name: &str,
body: &T,
) -> Result<SupabaseHttpResponse, AgentError>where
T: Serialize,
pub fn rpc<T>(
&self,
function_name: &str,
body: &T,
) -> Result<SupabaseHttpResponse, AgentError>where
T: Serialize,
Sends an RPC call through Supabase PostgREST.
Sourcepub fn insert<T>(
&self,
table: &str,
body: &T,
) -> Result<SupabaseHttpResponse, AgentError>where
T: Serialize,
pub fn insert<T>(
&self,
table: &str,
body: &T,
) -> Result<SupabaseHttpResponse, AgentError>where
T: Serialize,
Sends a table insert request through Supabase PostgREST.
Sourcepub fn select(
&self,
table: &str,
query: &str,
) -> Result<SupabaseHttpResponse, AgentError>
pub fn select( &self, table: &str, query: &str, ) -> Result<SupabaseHttpResponse, AgentError>
Sends a table select request through Supabase PostgREST.
Trait Implementations§
Source§impl Clone for SupabaseClient
impl Clone for SupabaseClient
Source§fn clone(&self) -> SupabaseClient
fn clone(&self) -> SupabaseClient
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for SupabaseClient
impl !UnwindSafe for SupabaseClient
impl Freeze for SupabaseClient
impl Send for SupabaseClient
impl Sync for SupabaseClient
impl Unpin for SupabaseClient
impl UnsafeUnpin for SupabaseClient
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more