Skip to main content

SupabaseClientQueryExt

Trait SupabaseClientQueryExt 

Source
pub trait SupabaseClientQueryExt {
    // Required methods
    fn from(&self, table: &str) -> QueryBuilder;
    fn from_typed<T>(&self) -> TypedQueryBuilder<T>
       where T: Table;
    fn rpc(
        &self,
        function: &str,
        args: Value,
    ) -> Result<RpcBuilder, SupabaseError>;
    fn rpc_typed<T>(
        &self,
        function: &str,
        args: Value,
    ) -> Result<TypedRpcBuilder<T>, SupabaseError>
       where T: DeserializeOwned + Send;
}
Expand description

Extension trait adding query builder methods to SupabaseClient.

Required Methods§

Source

fn from(&self, table: &str) -> QueryBuilder

Start a dynamic (string-based) query on a table.

Source

fn from_typed<T>(&self) -> TypedQueryBuilder<T>
where T: Table,

Start a typed query on a table using the Table trait.

Source

fn rpc(&self, function: &str, args: Value) -> Result<RpcBuilder, SupabaseError>

Call a stored procedure/function with dynamic return.

Source

fn rpc_typed<T>( &self, function: &str, args: Value, ) -> Result<TypedRpcBuilder<T>, SupabaseError>

Call a stored procedure/function with typed return.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§