pub struct SupabaseClient { /* private fields */ }Implementations§
Source§impl SupabaseClient
impl SupabaseClient
pub fn new(cfg: SupabaseConfig) -> Self
pub async fn health_check(&self) -> Result<(), FrameworkError>
pub async fn select( &self, table: &str, query: &[(&str, &str)], ) -> Result<Value, FrameworkError>
pub async fn insert<T: Serialize>( &self, table: &str, payload: &T, ) -> Result<Value, FrameworkError>
pub async fn rpc<T: Serialize>( &self, function: &str, payload: &T, ) -> Result<Value, FrameworkError>
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