pub fn transaction<F, T>(&self, f: F) -> Result<T, failure::Error>
    where
        F: FnOnce() -> Result<T, failure::Error>,
    {
        self.conn().transaction(|| f())
    }
/// Performs several database operations within one database transaction.
Performs several database operations within one database transaction.
Performs several database operations within one database transaction .
pub fn transaction<F, T>(&self, f: F) -> Result<T, failure::Error>
    where
        F: FnOnce() -> Result<T, failure::Error>,
    {
        self.conn().transaction(|| f())
    }
pub fn transaction < F , T > ( & self , f : F ) -> Result < T , failure :: Error > where F : FnOnce ( ) -> Result < T , failure :: Error > , { self . conn ( ) . transaction ( | | f ( ) ) }
Performs several database operations within one database transaction.
Performs several database operations within one database transaction .
&self
f
F