#include "postgres_options.hpp"

Public Member Functions | |
| PostgresOptions (const std::string &pg_opt, std::string default_dbname, logger::LoggerPtr log) | |
| PostgresOptions (const std::string &host, uint16_t port, const std::string &user, const std::string &password, const std::string &working_dbname, const std::string &maintenance_dbname, logger::LoggerPtr log) | |
| std::string | connectionStringWithoutDbName () const |
| std::string | workingConnectionString () const |
| std::string | maintenanceConnectionString () const |
| std::string | workingDbName () const |
| std::string | maintenanceDbName () const |
| const std::string & | preparedBlockName () const |
Type for convenient formatting of PostgreSQL connection strings.
| PostgresOptions::PostgresOptions | ( | const std::string & | pg_opt, |
| std::string | default_dbname, | ||
| logger::LoggerPtr | log | ||
| ) |
| pg_opt | The connection options string. |
| default_dbname | The default name of database to use when one is not provided in pg_opt. |
| log | Logger for internal messages. |
TODO 2019.06.07 mboldyrev IR-556 remove this constructor
| PostgresOptions::PostgresOptions | ( | const std::string & | host, |
| uint16_t | port, | ||
| const std::string & | user, | ||
| const std::string & | password, | ||
| const std::string & | working_dbname, | ||
| const std::string & | maintenance_dbname, | ||
| logger::LoggerPtr | log | ||
| ) |
| host | PostgreSQL host. |
| port | PostgreSQL port. |
| user | PostgreSQL username. |
| password | PostgreSQL password. |
| working_dbname | The name of working database. |
| maintenance_dbname | The name of database for maintenance purposes. It will not be altered in any way and is used to manage working database. |
| log | Logger for internal messages. |
| std::string PostgresOptions::connectionStringWithoutDbName | ( | ) | const |

| std::string PostgresOptions::maintenanceConnectionString | ( | ) | const |

| std::string PostgresOptions::maintenanceDbName | ( | ) | const |
| const std::string & PostgresOptions::preparedBlockName | ( | ) | const |

| std::string PostgresOptions::workingConnectionString | ( | ) | const |

| std::string PostgresOptions::workingDbName | ( | ) | const |
