1#pragma once
2
3#include <string>
4#include <Core/Protocol.h>
5#include <IO/ConnectionTimeouts.h>
6
7namespace Poco::Util
8{
9class AbstractConfiguration;
10}
11
12namespace DB
13{
14struct ConnectionParameters
15{
16 std::string host;
17 UInt16 port{};
18 std::string default_database;
19 std::string user;
20 std::string password;
21 Protocol::Secure security = Protocol::Secure::Disable;
22 Protocol::Compression compression = Protocol::Compression::Enable;
23 ConnectionTimeouts timeouts;
24
25 ConnectionParameters() {}
26
27 ConnectionParameters(const Poco::Util::AbstractConfiguration & config);
28};
29
30}
31