ClickHouse/dbms/programs/client/ConnectionParameters.h

31 lines
595 B
C++
Raw Normal View History

2018-08-25 13:55:18 +00:00
#pragma once
#include <string>
2018-08-25 13:55:18 +00:00
#include <Core/Protocol.h>
#include <IO/ConnectionTimeouts.h>
namespace Poco::Util
2018-08-25 13:55:18 +00:00
{
class AbstractConfiguration;
2018-08-25 13:55:18 +00:00
}
namespace DB
{
2018-08-25 13:55:18 +00:00
struct ConnectionParameters
{
std::string host;
2019-01-19 23:27:52 +00:00
UInt16 port{};
std::string default_database;
std::string user;
std::string password;
2019-01-19 23:27:52 +00:00
Protocol::Secure security = Protocol::Secure::Disable;
Protocol::Compression compression = Protocol::Compression::Enable;
2018-08-25 13:55:18 +00:00
ConnectionTimeouts timeouts;
ConnectionParameters() {}
ConnectionParameters(const Poco::Util::AbstractConfiguration & config);
2018-08-25 13:55:18 +00:00
};
}