pub fn new(connection: Connection) -> Self {
        let namespace_client = influxdb_iox_client::namespace::Client::new(connection.clone());
        let flight_client = influxdb_iox_client::flight::Client::new(connection.clone());

        let mut rl = Editor::new();
        rl.set_helper(Some(RustylineHelper::default()));
        let history_file = history_file();

        if let Err(e) = rl.load_history(&history_file) {
            debug!(%e, "error loading history file");
        }

        let prompt = "> ".to_string();

        let output_format = QueryOutputFormat::Pretty;

        Self {
            rl,
            prompt,
            connection,
            namespace_client,
            flight_client,
            query_engine: None,
            output_format,
        }
    }
/// Create a new Repl instance, connected to the specified URL
Create a new Repl instance, connected to the specified URL
Create a new Repl instance connected to the specified URL
pub fn new(connection: Connection) -> Self {
        let namespace_client = influxdb_iox_client::namespace::Client::new(connection.clone());
        let flight_client = influxdb_iox_client::flight::Client::new(connection.clone());
        let mut rl = Editor::new();
        rl.set_helper(Some(RustylineHelper::default()));
        let history_file = history_file();
        if let Err(e) = rl.load_history(&history_file) {
            debug!(%e, "error loading history file");
        }
        let prompt = "> ".to_string();
        let output_format = QueryOutputFormat::Pretty;
        Self {
            rl,
            prompt,
            connection,
            namespace_client,
            flight_client,
            query_engine: None,
            output_format,
        }
    }
pub fn new ( connection : Connection ) -> Self { let namespace_client = influxdb_iox_client :: namespace :: Client :: new ( connection . clone ( ) ) ; let flight_client = influxdb_iox_client :: flight :: Client :: new ( connection . clone ( ) ) ; let mut rl = Editor :: new ( ) ; rl . set_helper ( Some ( RustylineHelper :: default ( ) ) ) ; let history_file = history_file ( ) ; if let Err ( e ) = rl . load_history ( & history_file ) { debug ! ( e " " ) ; } let prompt = " " . to_string ( ) ; let output_format = QueryOutputFormat :: Pretty ; Self { rl , prompt , connection , namespace_client , flight_client , query_engine : None , output_format , } }
Create a new Repl instance, connected to the specified URL
Create a new Repl instance connected to the specified URL
connection
Connection
connection
Connection