/// Returns future that resolves to a `Conn` with `COM_RESET_CONNECTION` executed on it.
Returns future that resolves to a `Conn` with `COM_RESET_CONNECTION` executed on it.
Returns future that resolves to a ` Conn ` with ` COM_RESET_CONNECTION ` executed on it .
pub async fn reset(self) -> Result<Conn> {
        let pool = self.inner.pool.clone();
        let mut conn = if self.inner.version > (5, 7, 2) {
            self.write_command_data(consts::Command::COM_RESET_CONNECTION, &[])
                .await?
                .read_packet()
                .await?
                .0
        } else {
            Conn::new(self.inner.opts.clone()).await?
        };
        conn.inner.stmt_cache.clear();
        conn.inner.pool = pool;
        Ok(conn)
    }
pub async fn reset ( self ) -> Result < Conn > { let pool = self . inner . pool . clone ( ) ; let mut conn = if self . inner . version > ( 5 , 7 , 2 ) { self . write_command_data ( consts :: Command :: COM_RESET_CONNECTION , & [ ] ) . await ? . read_packet ( ) . await ? . 0 } else { Conn :: new ( self . inner . opts . clone ( ) ) . await ? } ; conn . inner . stmt_cache . clear ( ) ; conn . inner . pool = pool ; Ok ( conn ) }
Returns future that resolves to a `Conn` with `COM_RESET_CONNECTION` executed on it.
Returns future that resolves to a ` Conn ` with ` COM_RESET_CONNECTION ` executed on it .
self