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 ()=delete
 
std::string optionsString () const
 
std::string optionsStringWithoutDbName () const
 
boost::optional< std::stringdbname () const
 
 PostgresOptions (const std::string &pg_opt)
 

Detailed Description

Type for convenient parse and accessing postres options from pg_opt string

Constructor & Destructor Documentation

iroha::ametsuchi::PostgresOptions::PostgresOptions ( )
delete

Prohibit initialization of the PostgresOptions with no params

iroha::ametsuchi::PostgresOptions::PostgresOptions ( const std::string pg_opt)
explicit

Here is the call graph for this function:

Member Function Documentation

boost::optional< 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
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: