ClickHouse/programs/client/Client.h

37 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
void executeSignleQuery(const String & query_to_execute, ASTPtr parsed_query) override;
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-07-23 20:56:47 +00:00
void printHelpMessage(const OptionsDescription & options_description) override;
2021-07-29 12:48:07 +00:00
void addAndCheckOptions(OptionsDescription & options_description, po::variables_map & options, Arguments & arguments) override;
2021-08-23 08:50:12 +00:00
void processOptions(const OptionsDescription & options_description, const CommandLineOptions & options,
const std::vector<Arguments> & external_tables_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();
};
}