mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 10:02:01 +00:00
20 lines
504 B
C++
20 lines
504 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, bool multiline, Patterns extenders_, Patterns delimiters_);
|
|
~ReadlineLineReader() override;
|
|
|
|
void enableBracketedPaste() override;
|
|
|
|
private:
|
|
InputStatus readOneLine(const String & prompt) override;
|
|
void addToHistory(const String & line) override;
|
|
};
|