mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-16 20:53:27 +00:00
97f2a2213e
* Move some code outside dbms/src folder * Fix paths
31 lines
595 B
C++
31 lines
595 B
C++
#pragma once
|
|
|
|
#include <string>
|
|
#include <Core/Protocol.h>
|
|
#include <IO/ConnectionTimeouts.h>
|
|
|
|
namespace Poco::Util
|
|
{
|
|
class AbstractConfiguration;
|
|
}
|
|
|
|
namespace DB
|
|
{
|
|
struct ConnectionParameters
|
|
{
|
|
std::string host;
|
|
UInt16 port{};
|
|
std::string default_database;
|
|
std::string user;
|
|
std::string password;
|
|
Protocol::Secure security = Protocol::Secure::Disable;
|
|
Protocol::Compression compression = Protocol::Compression::Enable;
|
|
ConnectionTimeouts timeouts;
|
|
|
|
ConnectionParameters() {}
|
|
|
|
ConnectionParameters(const Poco::Util::AbstractConfiguration & config);
|
|
};
|
|
|
|
}
|