pub trait SqlExecutor {
type Error: Error + Send + Sync + 'static;
// Required method
fn execute(&mut self, sql: &str) -> Result<(), Self::Error>;
}Expand description
Trait for SQL execution contexts.
Implement this for your database connection type.