6 #ifndef IROHA_ROCKSDB_SPECIFIC_QUERY_EXECUTOR_HPP 7 #define IROHA_ROCKSDB_SPECIFIC_QUERY_EXECUTOR_HPP 11 #include <fmt/format.h> 25 class GetAccountTransactions;
26 class GetAccountAssetTransactions;
27 class GetTransactions;
28 class GetAccountAssets;
29 class GetAccountDetail;
31 class GetRolePermissions;
33 class GetPendingTransactions;
35 class GetEngineReceipts;
36 class PermissionToString;
40 class PendingTransactionStorage;
51 kFetchBlockFailed = 1,
52 kQueryHeightOverflow = 3,
55 kRetrieveTransactionsFailed = 1010,
59 std::shared_ptr<RocksDBContext> db_context,
61 std::shared_ptr<PendingTransactionStorage> pending_txs_storage,
62 std::shared_ptr<shared_model::interface::QueryResponseFactory>
64 std::shared_ptr<shared_model::interface::PermissionToString>
67 std::shared_ptr<RocksDBContext> getTxContext();
72 bool hasAccountRolePermission(
74 const std::string &account_id)
const override;
175 mutable std::shared_ptr<RocksDBContext> db_context_;
177 std::shared_ptr<PendingTransactionStorage> pending_txs_storage_;
178 std::shared_ptr<shared_model::interface::QueryResponseFactory>
179 query_response_factory_;
180 std::shared_ptr<shared_model::interface::PermissionToString>
187 template <
typename Pred,
typename OutputIterator>
192 OutputIterator dest_it);
194 template <
bool readTxsWithAssets,
typename Qry>
197 std::shared_ptr<shared_model::interface::QueryResponseFactory>
198 &query_response_factory,
205 #endif // IROHA_ROCKSDB_SPECIFIC_QUERY_EXECUTOR_HPP
Definition: block_query.hpp:17
Definition: get_pending_transactions.hpp:21
Definition: get_asset_info.hpp:17
Definition: get_transactions.hpp:14
Definition: block_storage.hpp:23
Definition: specific_query_executor.hpp:30
Definition: permissions.hpp:103
Definition: result_fwd.hpp:27
Definition: get_account_asset_transactions.hpp:21
Definition: rocksdb_command_executor.hpp:17
Role
Definition: permissions.hpp:18
std::unique_ptr< shared_model::interface::QueryResponse > QueryExecutorResult
Definition: query_executor.hpp:23
Definition: get_signatories.hpp:18
Definition: get_account_transactions.hpp:21
Definition: block_query.hpp:15
std::string AccountIdType
Type of account id.
Definition: types.hpp:38
ErrorCodes
Definition: rocksdb_specific_query_executor.hpp:50
Definition: command_executor.hpp:14
Definition: get_roles.hpp:17
Definition: get_peers.hpp:17
Definition: get_account_detail.hpp:29
Definition: get_account.hpp:14
WsvCommandResult execute(soci::statement &st, Function &&error)
Definition: postgres_wsv_command.cpp:26
Definition: get_engine_receipts.hpp:17
Definition: rocksdb_specific_query_executor.hpp:46
Definition: get_block.hpp:14
Definition: rocksdb_common.hpp:557
Definition: get_role_permissions.hpp:18
Definition: get_account_assets.hpp:20