hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
iroha::ametsuchi::QueryExecutor Class Referenceabstract

#include "query_executor.hpp"

Inheritance diagram for iroha::ametsuchi::QueryExecutor:
Inheritance graph
Collaboration diagram for iroha::ametsuchi::QueryExecutor:
Collaboration graph

Public Member Functions

virtual ~QueryExecutor ()=default
 
virtual QueryExecutorResult validateAndExecute (const shared_model::interface::Query &query, const bool validate_signatories)=0
 
virtual bool validate (const shared_model::interface::BlocksQuery &query, const bool validate_signatories)=0
 

Constructor & Destructor Documentation

virtual iroha::ametsuchi::QueryExecutor::~QueryExecutor ( )
virtualdefault

Member Function Documentation

virtual bool iroha::ametsuchi::QueryExecutor::validate ( const shared_model::interface::BlocksQuery query,
const bool  validate_signatories 
)
pure virtual

Perform BlocksQuery validation

Parameters
queryto validate
validate_signatories- if signatories should be validated
Returns
true if valid, false otherwise

Implemented in iroha::ametsuchi::PostgresQueryExecutor.

virtual QueryExecutorResult iroha::ametsuchi::QueryExecutor::validateAndExecute ( const shared_model::interface::Query query,
const bool  validate_signatories 
)
pure virtual

Execute and validate query.

Parameters
queryto validate and execute
validate_signatories- if signatories should be validated
Returns
pointer to query response

Implemented in iroha::ametsuchi::PostgresQueryExecutor.


The documentation for this class was generated from the following file: