Trait SqlExecutorMut

Source
pub trait SqlExecutorMut {
    type Error: Error;

    // Required methods
    fn sql_query_values(&mut self, query: &str) -> Result<Vec<u32>, Self::Error>;
    fn sql_execute(&mut self, query: &str) -> Result<(), Self::Error>;
}
Expand description

Similar to SqlExecutor, but for implementations that require mutable access to the connection to work.

Required Associated Types§

Required Methods§

Source

fn sql_query_values(&mut self, query: &str) -> Result<Vec<u32>, Self::Error>

This method will execute a query which returns 0 or N rows with one column of type u32.

§Errors

Should return error if the query failed.

Source

fn sql_execute(&mut self, query: &str) -> Result<(), Self::Error>

Execute an sql statement which does not return any rows.

§Errors

Should return error if the query failed.

Implementors§