hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
postgres_block_index.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_POSTGRES_BLOCK_INDEX_HPP
7 #define IROHA_POSTGRES_BLOCK_INDEX_HPP
8 
9 #include <boost/format.hpp>
10 
14 #include "logger/logger_fwd.hpp"
15 
16 namespace iroha {
17  namespace ametsuchi {
18  class PostgresBlockIndex : public BlockIndex {
19  public:
20  PostgresBlockIndex(soci::session &sql, logger::LoggerPtr log);
21 
35  void index(const shared_model::interface::Block &block) override;
36 
37  private:
38  soci::session &sql_;
39  logger::LoggerPtr log_;
40  };
41  } // namespace ametsuchi
42 } // namespace iroha
43 
44 #endif // IROHA_POSTGRES_BLOCK_INDEX_HPP
void index(const shared_model::interface::Block &block) override
Definition: postgres_block_index.cpp:126
std::shared_ptr< Logger > LoggerPtr
Definition: logger_fwd.hpp:22
Definition: block_index.hpp:22
PostgresBlockIndex(soci::session &sql, logger::LoggerPtr log)
Definition: postgres_block_index.cpp:122
Definition: block.hpp:15
Definition: block_query.hpp:16
Definition: postgres_block_index.hpp:18