hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
specific_query_executor.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_AMETSUCHI_SPECIFIC_QUERY_EXECUTOR_HPP
7 #define IROHA_AMETSUCHI_SPECIFIC_QUERY_EXECUTOR_HPP
8 
9 #include <memory>
10 
13 
14 namespace shared_model {
15  namespace interface {
16  class Query;
17  class QueryResponse;
18  } // namespace interface
19 } // namespace shared_model
20 
21 namespace iroha {
22  namespace ametsuchi {
23 
24  using QueryExecutorResult =
25  std::unique_ptr<shared_model::interface::QueryResponse>;
26 
31  public:
32  virtual ~SpecificQueryExecutor() = default;
33 
35  const shared_model::interface::Query &qry) = 0;
36 
37  virtual bool hasAccountRolePermission(
39  const std::string &account_id) const = 0;
40  };
41  } // namespace ametsuchi
42 } // namespace iroha
43 
44 #endif // IROHA_AMETSUCHI_SPECIFIC_QUERY_EXECUTOR_HPP
Definition: query.hpp:35
Definition: specific_query_executor.hpp:30
Role
Definition: permissions.hpp:17
std::unique_ptr< shared_model::interface::QueryResponse > QueryExecutorResult
Definition: query_executor.hpp:23
Definition: block_query.hpp:14
WsvCommandResult execute(soci::statement &st, Function &&error)
Definition: postgres_wsv_command.cpp:23
Definition: command_executor.hpp:12