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
9
#include "
ametsuchi/impl/temporary_wsv_impl.hpp
"
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
24
class
PostgresTemporaryWsvImpl
final :
public
TemporaryWsvImpl
{
25
public
:
26
PostgresTemporaryWsvImpl
(
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
:
37
expected::Result<void, validation::CommandError>
validateSignatures(
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
iroha::ametsuchi
Definition:
block_query.hpp:17
iroha::ametsuchi::PostgresTemporaryWsvImpl::getSession
soci::session & getSession()
Definition:
postgres_temporary_wsv_impl.hpp:32
iroha::expected::Result
Definition:
result_fwd.hpp:27
iroha::ametsuchi::TemporaryWsvImpl
Definition:
temporary_wsv_impl.hpp:25
iroha::ametsuchi::PostgresTemporaryWsvImpl
Definition:
postgres_temporary_wsv_impl.hpp:24
temporary_wsv_impl.hpp
logger::LoggerManagerTreePtr
std::shared_ptr< LoggerManagerTree > LoggerManagerTreePtr
Definition:
logger_manager_fwd.hpp:14
shared_model
Definition:
command_executor.hpp:13
shared_model::interface::Transaction
Definition:
transaction.hpp:23
iroha::ametsuchi::PostgresTemporaryWsvImpl::sql_
soci::session & sql_
Definition:
postgres_temporary_wsv_impl.hpp:40
irohad
ametsuchi
impl
postgres_temporary_wsv_impl.hpp
Generated by
1.8.13