Trait 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<()>

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§

Source§

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