Trait derive_sql::traits::ExecuteTrait

source ·
pub trait ExecuteTrait {
    // Required method
    fn execute_with_params<P>(&mut self, query: &str, params: P) -> Result<()>
       where P: Params;

    // Provided method
    fn execute(&mut self, query: &str) -> Result<()> { ... }
}
Expand description

Generic trait to be implemented by SQL drivers (or more likely by proxy to SQL drivers) so that the functionalities provided by this crate can be leveraged

Required Methods§

source

fn execute_with_params<P>(&mut self, query: &str, params: P) -> Result<()>
where P: Params,

Provided Methods§

source

fn execute(&mut self, query: &str) -> Result<()>

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T> ExecuteTrait for MysqlProxy<T>
where T: Queryable,