/// Will consume and commit transaction.
Will consume and commit transaction.
Will consume and commit transaction .
pub fn commit(mut self) -> MyResult<()> {
        if let Some(ref mut conn) = self.conn {
            try!(conn.query("COMMIT"));
        } else if let Some(ref mut conn) = self.pooled_conn {
            try!(conn.query("COMMIT"));
        } else {
            unreachable!()
        }
        self.committed = true;
        Ok(())
    }
pub fn commit ( mut self ) -> MyResult < ( ) > { if let Some ( ref mut conn ) = self . conn { try ! ( conn query ( " " ) ) ; } else if let Some ( ref mut conn ) = self . pooled_conn { try ! ( conn query ( " " ) ) ; } else { unreachable ! ( ) } self . committed = true ; Ok ( ( ) ) }
Will consume and commit transaction.
Will consume and commit transaction .
mut self