| 9 | { |
| 10 | |
| 11 | ConnectionInfo formatConnectionString(String dbname, String host, UInt16 port, String user, String password, UInt64 timeout) |
| 12 | { |
| 13 | DB::WriteBufferFromOwnString out; |
| 14 | out << "dbname=" << DB::quote << dbname |
| 15 | << " host=" << DB::quote << host |
| 16 | << " port=" << port |
| 17 | << " user=" << DB::quote << user |
| 18 | << " password=" << DB::quote << password |
| 19 | << " connect_timeout=" << timeout; |
| 20 | return {out.str(), host + ':' + DB::toString(port)}; |
| 21 | } |
| 22 | |
| 23 | String getConnectionForLog(const String & host, UInt16 port) |
| 24 | { |
no test coverage detected