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

#include "pg_connection_init.hpp"

Collaboration diagram for iroha::ametsuchi::PgConnectionInit:
Collaboration graph

Static Public Member Functions

static expected::Result< std::shared_ptr< iroha::ametsuchi::PoolWrapper >, std::string > init (StartupWsvDataPolicy startup_wsv_data_policy, iroha::ametsuchi::PostgresOptions const &pg_opt, logger::LoggerManagerTreePtr log_manager)
 
static expected::Result< void, std::string > prepareWorkingDatabase (StartupWsvDataPolicy startup_wsv_data_policy, const PostgresOptions &options)
 
static expected::Result< std::shared_ptr< PoolWrapper >, std::string > prepareConnectionPool (const ReconnectionStrategyFactory &reconnection_strategy_factory, const PostgresOptions &options, const int pool_size, logger::LoggerManagerTreePtr log_manager)
 
static iroha::expected::Result< void, std::string > rollbackPrepared (soci::session &sql, const std::string &prepared_block_name)
 
static expected::Result< void, std::string > dropWorkingDatabase (const PostgresOptions &options)
 
static expected::Result< void, std::string > resetPeers (soci::session &sql)
 

Member Function Documentation

◆ dropWorkingDatabase()

iroha::expected::Result< void, std::string > PgConnectionInit::dropWorkingDatabase ( const PostgresOptions options)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ init()

iroha::expected::Result< std::shared_ptr< iroha::ametsuchi::PoolWrapper >, std::string > PgConnectionInit::init ( StartupWsvDataPolicy  startup_wsv_data_policy,
iroha::ametsuchi::PostgresOptions const &  pg_opt,
logger::LoggerManagerTreePtr  log_manager 
)
static
Here is the call graph for this function:

◆ prepareConnectionPool()

iroha::expected::Result< std::shared_ptr< PoolWrapper >, std::string > PgConnectionInit::prepareConnectionPool ( const ReconnectionStrategyFactory reconnection_strategy_factory,
const PostgresOptions options,
const int  pool_size,
logger::LoggerManagerTreePtr  log_manager 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ prepareWorkingDatabase()

iroha::expected::Result< void, std::string > PgConnectionInit::prepareWorkingDatabase ( StartupWsvDataPolicy  startup_wsv_data_policy,
const PostgresOptions options 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ resetPeers()

iroha::expected::Result< void, std::string > PgConnectionInit::resetPeers ( soci::session &  sql)
static

Removes all peers from WSV

Returns
error message if reset has failed
Here is the call graph for this function:
Here is the caller graph for this function:

◆ rollbackPrepared()

iroha::expected::Result< void, std::string > PgConnectionInit::rollbackPrepared ( soci::session &  sql,
const std::string &  prepared_block_name 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

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