/// Will consume and rollback transaction. You also can rely on `Drop` implementation but it
/// will swallow errors.
Will consume and rollback transaction. You also can rely on `Drop` implementation but it
will swallow errors.
Will consume and rollback transaction . You also can rely on ` Drop ` implementation but it will swallow errors .
pub fn rollback(mut self) -> MyResult<()> {
        if let Some(ref mut conn) = self.conn {
            let _ = try!(conn.query("ROLLBACK"));
        } else if let Some(ref mut conn) = self.pooled_conn {
            let _ = try!(conn.query("ROLLBACK"));
        }
        self.rollbacked = true;
        Ok(())
    }
pub fn rollback ( mut self ) -> MyResult < ( ) > { if let Some ( ref mut conn ) = self . conn { let _ = try ! ( conn query ( " " ) ) ; } else if let Some ( ref mut conn ) = self . pooled_conn { let _ = try ! ( conn query ( " " ) ) ; } self . rollbacked = true ; Ok ( ( ) ) }
Will consume and rollback transaction.
Will consume and rollback transaction .
mut self