ClickHouse/dbms/programs/client/ConnectionParameters.h
proller 8b101d0556 CLICKHOUSE-4493 Ask client password on tty (#5092)
* CLICKHOUSE-4493 Ask client password on tty

* wip

* clang-format

* O_NOCTTY

* remove O_NOCTTY

* fix

* static

* readpassphrase

* freebsd fix

* fix

* Better

* fix style

* Update ConnectionParameters.cpp

* fixes

* fix

* fix
2019-06-03 03:57:33 +03:00

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);
};
}