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

#include "postgres_query_executor.hpp"

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

Public Member Functions

 PostgresQueryExecutor (std::unique_ptr< soci::session > sql, std::shared_ptr< shared_model::interface::QueryResponseFactory > response_factory, std::shared_ptr< SpecificQueryExecutor > specific_query_executor, logger::LoggerPtr log)
 
QueryExecutorResult validateAndExecute (const shared_model::interface::Query &query, const bool validate_signatories) override
 
bool validate (const shared_model::interface::BlocksQuery &query, const bool validate_signatories) override
 
- Public Member Functions inherited from iroha::ametsuchi::QueryExecutor
virtual ~QueryExecutor ()=default
 

Constructor & Destructor Documentation

iroha::ametsuchi::PostgresQueryExecutor::PostgresQueryExecutor ( std::unique_ptr< soci::session >  sql,
std::shared_ptr< shared_model::interface::QueryResponseFactory response_factory,
std::shared_ptr< SpecificQueryExecutor specific_query_executor,
logger::LoggerPtr  log 
)

Member Function Documentation

bool iroha::ametsuchi::PostgresQueryExecutor::validate ( const shared_model::interface::BlocksQuery query,
const bool  validate_signatories 
)
overridevirtual

Perform BlocksQuery validation

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

Implements iroha::ametsuchi::QueryExecutor.

Here is the call graph for this function:

QueryExecutorResult iroha::ametsuchi::PostgresQueryExecutor::validateAndExecute ( const shared_model::interface::Query query,
const bool  validate_signatories 
)
overridevirtual

Execute and validate query.

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

Implements iroha::ametsuchi::QueryExecutor.

Here is the call graph for this function:


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