derive_sql/traits/
execute.rs

1use super::*;
2
3/// Generic trait to be implemented by SQL drivers (or more likely by proxy to SQL drivers) so that the 
4/// functionalities provided by this crate can be leveraged
5pub trait ExecuteTrait
6{
7  fn execute_with_params<P>(&mut self, query: &str, params: P) -> Result<()>
8  where P: Params;
9
10  fn execute(&mut self, query: &str) -> Result<()> { self.execute_with_params(query, ()) }
11}
12