pub async fn repl(&mut self) {
        // Initial prompt
        print!("KVDBv0.1.0 \nThis is an experimental database, do contribute to further developments at https://github.com/de-sh/kvdb. \nUse `.exit` to exit the repl\ndb > ");
        io::stdout().flush().expect("Error");
        // Read
        for cmd in stdin().lock().lines() {
            match cmd {
                Ok(cmd) => self.cmd = cmd.trim().to_string(),
                Err(_) => print!("Error in reading command, exiting REPL."),
            }
            // Evaluate and Print/Execute
            self.parse_input().await;
            // Prompt
            print!("db > ");
            io::stdout().flush().expect("Error");
        }
    }
/// Starts REPL execution in earnest.
Starts REPL execution in earnest.
Starts REPL execution in earnest .
pub async fn repl(&mut self) {
        // Initial prompt
        print!("KVDBv0.1.0 \nThis is an experimental database, do contribute to further developments at https://github.com/de-sh/kvdb. \nUse `.exit` to exit the repl\ndb > ");
        io::stdout().flush().expect("Error");
        // Read
        for cmd in stdin().lock().lines() {
            match cmd {
                Ok(cmd) => self.cmd = cmd.trim().to_string(),
                Err(_) => print!("Error in reading command, exiting REPL."),
            }
            // Evaluate and Print/Execute
            self.parse_input().await;
            // Prompt
            print!("db > ");
            io::stdout().flush().expect("Error");
        }
    }
pub async fn repl ( & mut self ) { // Initial prompt print ! ( " \n \n \n " ) ; io :: stdout ( ) . flush ( ) . expect ( " " ) ; // Read for cmd in stdin ( ) . lock ( ) . lines ( ) { match cmd { Ok ( cmd ) => self . cmd = cmd . trim ( ) . to_string ( ) , Err ( _ ) => print ! ( " " ) , } // Evaluate and Print/Execute self . parse_input ( ) . await ; // Prompt print ! ( " " ) ; io :: stdout ( ) . flush ( ) . expect ( " " ) ; } }
Starts REPL execution in earnest.
Starts REPL execution in earnest .
&mut self
&mut self