mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 01:25:21 +00:00
38 lines
1.1 KiB
C++
38 lines
1.1 KiB
C++
#pragma once
|
|
|
|
#include <Client/ClientBase.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
|
|
class Client : public ClientBase
|
|
{
|
|
public:
|
|
Client() = default;
|
|
|
|
void initialize(Poco::Util::Application & self) override;
|
|
|
|
int main(const std::vector<String> & /*args*/) override;
|
|
|
|
protected:
|
|
bool executeMultiQuery(const String & all_queries_text) override;
|
|
bool processWithFuzzing(const String & full_query) override;
|
|
|
|
void connect() override;
|
|
void prepareForInteractive() override;
|
|
void processError(const String & query) const override;
|
|
String getName() const override { return "client"; }
|
|
|
|
void printHelpMessage(const OptionsDescription & options_description) override;
|
|
void addOptions(OptionsDescription & options_description) override;
|
|
void processOptions(const OptionsDescription & options_description, const CommandLineOptions & options,
|
|
const std::vector<Arguments> & external_tables_arguments) override;
|
|
void processConfig() override;
|
|
|
|
private:
|
|
void printChangedSettings() const;
|
|
std::vector<String> loadWarningMessages();
|
|
};
|
|
}
|