You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: main.rs
    path of file: ./repos/rust-farm/handson/ggdb/crates/ggdb_repl/src
    
    the code of the file until where you have to start completion: use ggdb_parser::query::{parse_query};
use miette::GraphicalReportHandler;
use rustyline::error::ReadlineError;
use rustyline::{Editor, Result};

const HISTORY_FILE: &str = "./history.txt";

fn main() -> Result<()> {
    println!("GGDB(CiCi DB)\nSonlandırmak için CTRL+D\n");
    let mut reader = Editor::<()>::new()?;
    if reader.load_history(HISTORY_FILE).is_err() {
        println!("Arşivde b
    
fn main() -> Result<()> {
    println!("GGDB(CiCi DB)\nSonlandırmak için CTRL+D\n");
    let mut reader = Editor::<()>::new()?;
    if reader.load_history(HISTORY_FILE).is_err() {
        println!("Arşivde bilgi bulunamadı");
    }
    loop {
        let readline = reader.readline(">> ");
        match readline {
            Ok(line) => {
                reader.add_history_entry(line.as_str());
                match parse_query(line.as_ref()) {
                    Ok(q) => println!("{q:?}"),
                    Err(e) => {
                        let mut s = String::new();
                        GraphicalReportHandler::new()
                            .render_report(&mut s, &e)
                            .unwrap();
                        println!("{s}");
                    }
                }
            }
            Err(ReadlineError::Interrupted) => {}
            Err(ReadlineError::Eof) => break,
            Err(err) => {
                println!("Error: {:?}", err);
                break;
            }
        }
    }
    reader.save_history(HISTORY_FILE)
}