hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
postgres_block_storage_factory.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_POSTGRES_BLOCK_STORAGE_FACTORY_HPP
7 #define IROHA_POSTGRES_BLOCK_STORAGE_FACTORY_HPP
8 
10 
14 #include "logger/logger_fwd.hpp"
15 
16 namespace iroha {
17  namespace ametsuchi {
19  public:
21  soci::session &sql,
22  std::shared_ptr<PostgresBlockStorage::BlockTransportFactory>
24  logger::LoggerPtr log);
25  std::unique_ptr<BlockStorage> create() override;
26 
27  private:
28  soci::session &sql_;
29  std::shared_ptr<PostgresBlockStorage::BlockTransportFactory>
30  block_factory_;
31  logger::LoggerPtr log_;
32  };
33  } // namespace ametsuchi
34 } // namespace iroha
35 
36 #endif // IROHA_POSTGRES_BLOCK_STORAGE_FACTORY_HPP
static const model::converters::PbBlockFactory block_factory
Definition: sha3_hash.cpp:15
std::unique_ptr< BlockStorage > create() override
Definition: postgres_block_storage_factory.cpp:18
std::shared_ptr< Logger > LoggerPtr
Definition: logger_fwd.hpp:22
Definition: block_query.hpp:14
Definition: block_storage_factory.hpp:18
PostgresBlockStorageFactory(soci::session &sql, std::shared_ptr< PostgresBlockStorage::BlockTransportFactory > block_factory, logger::LoggerPtr log)
Definition: postgres_block_storage_factory.cpp:10
Definition: postgres_block_storage_factory.hpp:18