#pragma once #include "config.h" #if USE_LIBPQXX #include #include #include "Connection.h" #include namespace pqxx { using ReadTransaction = pqxx::read_transaction; using ReplicationTransaction = pqxx::transaction; } namespace postgres { ConnectionInfo formatConnectionString(String dbname, String host, UInt16 port, String user, String password, UInt64 timeout); String getConnectionForLog(const String & host, UInt16 port); String formatNameForLogs(const String & postgres_database_name, const String & postgres_table_name); } #endif