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§
Sourcefn from(&self, table: &str) -> QueryBuilder
fn from(&self, table: &str) -> QueryBuilder
Start a dynamic (string-based) query on a table.
Sourcefn from_typed<T>(&self) -> TypedQueryBuilder<T>where
T: Table,
fn from_typed<T>(&self) -> TypedQueryBuilder<T>where
T: Table,
Start a typed query on a table using the Table trait.
Sourcefn rpc(&self, function: &str, args: Value) -> Result<RpcBuilder, SupabaseError>
fn rpc(&self, function: &str, args: Value) -> Result<RpcBuilder, SupabaseError>
Call a stored procedure/function with dynamic return.
Sourcefn rpc_typed<T>(
&self,
function: &str,
args: Value,
) -> Result<TypedRpcBuilder<T>, SupabaseError>where
T: DeserializeOwned + Send,
fn rpc_typed<T>(
&self,
function: &str,
args: Value,
) -> Result<TypedRpcBuilder<T>, SupabaseError>where
T: DeserializeOwned + Send,
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.