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

#include "postgres_block_storage_factory.hpp"

Inheritance diagram for iroha::ametsuchi::PostgresBlockStorageFactory:
Inheritance graph
Collaboration diagram for iroha::ametsuchi::PostgresBlockStorageFactory:
Collaboration graph

Public Member Functions

 PostgresBlockStorageFactory (std::shared_ptr< PoolWrapper > pool_wrapper, std::shared_ptr< shared_model::proto::ProtoBlockFactory > block_factory, std::function< std::string()> table_name_provider, logger::LoggerPtr log)
 
std::unique_ptr< BlockStoragecreate () override
 
- Public Member Functions inherited from iroha::ametsuchi::BlockStorageFactory
virtual ~BlockStorageFactory ()=default
 

Static Public Member Functions

static iroha::expected::Result< void, std::string > createTable (soci::session &sql, const std::string &table)
 

Constructor & Destructor Documentation

PostgresBlockStorageFactory::PostgresBlockStorageFactory ( std::shared_ptr< PoolWrapper pool_wrapper,
std::shared_ptr< shared_model::proto::ProtoBlockFactory block_factory,
std::function< std::string()>  table_name_provider,
logger::LoggerPtr  log 
)

Member Function Documentation

std::unique_ptr< BlockStorage > PostgresBlockStorageFactory::create ( )
overridevirtual

Implements iroha::ametsuchi::BlockStorageFactory.

Here is the call graph for this function:

iroha::expected::Result< void, std::string > PostgresBlockStorageFactory::createTable ( soci::session &  sql,
const std::string &  table 
)
static

Here is the caller graph for this function:


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