pub async fn query(&mut self, query: &str) -> Result<(), Error> {
        let query = simple_query(query);

        self.send(query).await?;

        loop {
            let _ = self.recv().await?;

            if !self.data_available {
                break;
            }
        }

        Ok(())
    }
/// Execute an arbitrary query against the server.
/// It will use the simple query protocol.
/// Result will not be returned, so this is useful for things like `SET` or `ROLLBACK`.
Execute an arbitrary query against the server.
It will use the simple query protocol.
Result will not be returned, so this is useful for things like `SET` or `ROLLBACK`.
Execute an arbitrary query against the server . It will use the simple query protocol . Result will not be returned so this is useful for things like ` SET ` or ` ROLLBACK ` .
pub async fn query(&mut self, query: &str) -> Result<(), Error> {
        let query = simple_query(query);
        self.send(query).await?;
        loop {
            let _ = self.recv().await?;
            if !self.data_available {
                break;
            }
        }
        Ok(())
    }
pub async fn query ( & mut self , query : & str ) -> Result < ( ) , Error > { let query = simple_query ( query ) ; self . send ( query ) . await ? ; loop { let _ = self . recv ( ) . await ? ; if ! self . data_available { break ; } } Ok ( ( ) ) }
Execute an arbitrary query against the server.
Execute an arbitrary query against the server .
&mut self
query
&str
&mut self
query
&str