mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-17 05:03:20 +00:00
20 lines
480 B
C++
20 lines
480 B
C++
#pragma once
|
|
|
|
#include "LineReader.h"
|
|
|
|
#include <readline/readline.h>
|
|
#include <readline/history.h>
|
|
|
|
class ReadlineLineReader : public LineReader
|
|
{
|
|
public:
|
|
ReadlineLineReader(const Suggest & suggest, const String & history_file_path, char extender, char delimiter = 0);
|
|
~ReadlineLineReader() override;
|
|
|
|
void enableBracketedPaste() override;
|
|
|
|
private:
|
|
InputStatus readOneLine(const String & prompt) override;
|
|
void addToHistory(const String & line) override;
|
|
};
|