DSN manipulation helpers.
Definition in file dsn.hpp.
Go to the source code of this file.
#include <string>#include <vector>#include <userver/clients/dns/resolver_fwd.hpp>#include <userver/engine/deadline.hpp>#include <userver/utils/strong_typedef.hpp>
 Include dependency graph for dsn.hpp:
 This graph shows which files directly or indirectly include this file:Classes | |
| struct | storages::postgres::DsnOptions | 
Namespaces | |
| namespace | storages | 
| Components, clients and helpers for different databases and storages.  | |
| namespace | storages::postgres | 
| Top namespace for uPg driver.  | |
Typedefs | |
| using | storages::postgres::Dsn = ::utils::NonLoggable<class DsnTag, std::string> | 
| using | storages::postgres::DsnList = std::vector<Dsn> | 
Functions | |
| DsnList | storages::postgres::SplitByHost (const Dsn &dsn) | 
| std::string | storages::postgres::MakeDsnNick (const Dsn &dsn, bool escape) | 
| DsnOptions | storages::postgres::OptionsFromDsn (const Dsn &dsn) | 
| std::string | storages::postgres::GetHostPort (const Dsn &dsn) | 
Return <host>[:<port>] string for a single-host DSN.  | |
| std::string | storages::postgres::DsnCutPassword (const Dsn &dsn) | 
| Return DSN string without 'password' field.  | |
| std::string | storages::postgres::DsnMaskPassword (const Dsn &dsn) | 
| Return DSN string with password contents masked.  | |
| std::string | storages::postgres::EscapeHostName (const std::string &hostname, char escape_char='_') | 
| Dsn | storages::postgres::ResolveDsnHostaddrs (const Dsn &dsn, clients::dns::Resolver &resolver, engine::Deadline deadline) |