pg_async
|
Postgre connection options. More...
#include <common.hpp>
Public Member Functions | |
void | generate_alias () |
Static Public Member Functions | |
static connection_options | parse (std::string const &) |
Public Attributes | |
dbalias | alias |
std::string | schema |
std::string | uri |
std::string | database |
std::string | user |
std::string | password |
Postgre connection options.
Definition at line 250 of file common.hpp.
void tip::db::pg::connection_options::generate_alias | ( | ) |
Generate an alias from username, database and uri if the alias was not provided.
|
static |
Parse a connection string
dbalias tip::db::pg::connection_options::alias |
Database alias
Definition at line 251 of file common.hpp.
std::string tip::db::pg::connection_options::database |
Database name
Definition at line 254 of file common.hpp.
std::string tip::db::pg::connection_options::password |
Database user's password
Definition at line 256 of file common.hpp.
std::string tip::db::pg::connection_options::schema |
Database connection schema. Currently supported are tcp and socket
Definition at line 252 of file common.hpp.
std::string tip::db::pg::connection_options::uri |
Database connection uri. host:port
for tcp, /path/to/file
for socket
Definition at line 253 of file common.hpp.
std::string tip::db::pg::connection_options::user |
Database user name
Definition at line 255 of file common.hpp.