hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
iroha::ametsuchi::PostgresOptions Class Reference

#include "postgres_options.hpp"

Collaboration diagram for iroha::ametsuchi::PostgresOptions:
Collaboration graph

Public Member Functions

 PostgresOptions (const std::string &pg_opt, std::string default_dbname, logger::LoggerPtr log)
 
std::string optionsString () const
 
std::string optionsStringWithoutDbName () const
 
const std::string & dbname () const
 

Detailed Description

Type for convenient parse and accessing postres options from pg_opt string

Constructor & Destructor Documentation

iroha::ametsuchi::PostgresOptions::PostgresOptions ( const std::string &  pg_opt,
std::string  default_dbname,
logger::LoggerPtr  log 
)
Parameters
pg_optThe connection options string.
default_dbnameThe default name of database to use when one is not provided in pg_opt.
logLogger for internal messages.

TODO 2019.06.07 mboldyrev IR-556 make dbname required & remove the default.

Here is the call graph for this function:

Member Function Documentation

const std::string & iroha::ametsuchi::PostgresOptions::dbname ( ) const

Here is the caller graph for this function:

std::string iroha::ametsuchi::PostgresOptions::optionsString ( ) const
Returns
full pg_opt string with options

Here is the caller graph for this function:

std::string iroha::ametsuchi::PostgresOptions::optionsStringWithoutDbName ( ) const
Returns
pg_opt string without dbname param

Here is the caller graph for this function:


The documentation for this class was generated from the following files: