ClickHouse/programs/client/Client.h

40 lines
1.1 KiB
C++
Raw Normal View History

#pragma once
2021-07-22 21:27:26 +00:00
#include <Client/ClientBase.h>
namespace DB
{
2021-07-22 21:27:26 +00:00
class Client : public ClientBase
{
public:
Client() = default;
2021-09-11 11:34:22 +00:00
2021-07-23 20:56:47 +00:00
void initialize(Poco::Util::Application & self) override;
2021-09-11 11:34:22 +00:00
2021-09-04 18:19:01 +00:00
int main(const std::vector<String> & /*args*/) override;
2021-07-23 20:56:47 +00:00
protected:
2021-09-04 18:19:01 +00:00
bool executeMultiQuery(const String & all_queries_text) override;
2021-07-28 12:56:11 +00:00
bool processWithFuzzing(const String & full_query) override;
2021-07-26 22:28:27 +00:00
2021-09-04 18:19:01 +00:00
void connect() override;
2021-08-19 11:07:47 +00:00
void processError(const String & query) const override;
2021-09-19 21:42:28 +00:00
String getName() const override { return "client"; }
2021-07-23 20:56:47 +00:00
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,
const std::vector<Arguments> & hosts_and_ports_arguments) override;
2021-08-18 14:39:04 +00:00
void processConfig() override;
2021-07-22 21:27:26 +00:00
private:
void printChangedSettings() const;
2021-07-28 12:56:11 +00:00
std::vector<String> loadWarningMessages();
};
}