hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
pool_wrapper.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_POOL_WRAPPER_HPP
7 #define IROHA_POOL_WRAPPER_HPP
8 
9 #include <memory>
10 
11 namespace soci {
12  class connection_pool;
13 }
14 
15 namespace iroha {
16  namespace ametsuchi {
17  class FailoverCallbackHolder;
18 
19  struct PoolWrapper {
21  std::shared_ptr<soci::connection_pool> connection_pool,
22  std::unique_ptr<FailoverCallbackHolder> failover_callback_holder,
23  bool enable_prepared_transactions);
24 
25  std::shared_ptr<soci::connection_pool> connection_pool_;
26  std::unique_ptr<FailoverCallbackHolder> failover_callback_holder_;
28  };
29 
30  } // namespace ametsuchi
31 } // namespace iroha
32 
33 #endif // IROHA_POOL_WRAPPER_HPP
std::unique_ptr< FailoverCallbackHolder > failover_callback_holder_
Definition: pool_wrapper.hpp:26
bool enable_prepared_transactions_
Definition: pool_wrapper.hpp:27
Definition: pool_wrapper.hpp:19
Definition: block_query.hpp:14
std::shared_ptr< soci::connection_pool > connection_pool_
Definition: pool_wrapper.hpp:25
Definition: pool_wrapper.hpp:11