hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
postgres_temporary_wsv_impl.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_POSTGRES_TEMPORARY_WSV_IMPL_HPP
7 #define IROHA_POSTGRES_TEMPORARY_WSV_IMPL_HPP
8 
10 
11 #include <soci/soci.h>
12 
13 namespace shared_model {
14  namespace interface {
15  class PermissionToString;
16  }
17 } // namespace shared_model
18 
19 namespace iroha::ametsuchi {
20 
21  class PostgresCommandExecutor;
22  class TransactionExecutor;
23 
25  public:
27  std::shared_ptr<PostgresCommandExecutor> command_executor,
28  logger::LoggerManagerTreePtr log_manager);
29 
30  ~PostgresTemporaryWsvImpl() = default;
31 
32  soci::session &getSession() {
33  return sql_;
34  }
35 
36  protected:
38  const shared_model::interface::Transaction &transaction);
39 
40  soci::session &sql_;
41  };
42 
43 } // namespace iroha::ametsuchi
44 
45 #endif // IROHA_TEMPORARY_WSV_IMPL_HPP
Definition: block_query.hpp:17
soci::session & getSession()
Definition: postgres_temporary_wsv_impl.hpp:32
Definition: result_fwd.hpp:27
Definition: temporary_wsv_impl.hpp:25
Definition: postgres_temporary_wsv_impl.hpp:24
std::shared_ptr< LoggerManagerTree > LoggerManagerTreePtr
Definition: logger_manager_fwd.hpp:14
Definition: command_executor.hpp:13
Definition: transaction.hpp:23
soci::session & sql_
Definition: postgres_temporary_wsv_impl.hpp:40