SqlExecutor

Trait SqlExecutor 

Source
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.

Required Associated Types§

Source

type Error: Error + Send + Sync + 'static

Required Methods§

Source

fn execute(&mut self, sql: &str) -> Result<(), Self::Error>

Execute SQL statement(s)

Implementors§