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.hpp"
15 
16 namespace iroha {
17  namespace ametsuchi {
18  class PostgresBlockIndex : public BlockIndex {
19  public:
21  soci::session &sql,
22  logger::Logger log = logger::log("PostgresBlockIndex"));
23 
37  void index(const shared_model::interface::Block &block) override;
38 
39  private:
40  soci::session &sql_;
41  logger::Logger log_;
42  };
43  } // namespace ametsuchi
44 } // namespace iroha
45 
46 #endif // IROHA_POSTGRES_BLOCK_INDEX_HPP
void index(const shared_model::interface::Block &block) override
Definition: postgres_block_index.cpp:125
Definition: block_index.hpp:22
std::shared_ptr< spdlog::logger > Logger
Definition: logger.hpp:26
Definition: block.hpp:15
Definition: block_query.hpp:16
Logger log(const std::string &tag)
Definition: logger.cpp:48
Definition: postgres_block_index.hpp:18
PostgresBlockIndex(soci::session &sql, logger::Logger log=logger::log("PostgresBlockIndex"))
Definition: postgres_block_index.cpp:121