ledger-core
|
Public Member Functions | |
OperationQuery (const std::shared_ptr< api::QueryFilter > &headFilter, const std::shared_ptr< DatabaseSessionPool > &pool, const std::shared_ptr< api::ExecutionContext > &context, const std::shared_ptr< api::ExecutionContext > &mainContext) | |
std::shared_ptr< api::OperationQuery > | addOrder (api::OperationOrderKey key, bool descending) override |
std::shared_ptr< api::QueryFilter > | filter () override |
std::shared_ptr< api::OperationQuery > | offset (int64_t from) override |
std::shared_ptr< api::OperationQuery > | limit (int64_t count) override |
std::shared_ptr< api::OperationQuery > | complete () override |
std::shared_ptr< api::OperationQuery > | partial () override |
void | execute (const std::shared_ptr< api::OperationListCallback > &callback) override |
Future< std::vector< std::shared_ptr< api::Operation > > > | execute () |
std::shared_ptr< OperationQuery > | registerAccount (const std::shared_ptr< AbstractAccount > &account) |
![]() | |
virtual void | execute (const std::shared_ptr< OperationListCallback > &callback)=0 |
![]() | |
DedicatedContext (const std::shared_ptr< api::ExecutionContext > &context) | |
template<typename T > | |
Future< T > | async (std::function< T()> f) |
template<typename T > | |
Future< T > | async (std::function< T()> f) const |
Future< Unit > | run (std::function< void()> f) |
std::shared_ptr< api::ExecutionContext > | getContext () const |
Protected Member Functions | |
virtual soci::rowset< soci::row > | performExecute (soci::session &sql) |
Protected Attributes | |
QueryBuilder | _builder |
std::shared_ptr< api::QueryFilter > | _headFilter |
bool | _fetchCompleteOperation |
std::shared_ptr< api::ExecutionContext > | _mainContext |
std::shared_ptr< DatabaseSessionPool > | _pool |
std::unordered_map< std::string, std::shared_ptr< AbstractAccount > > | _accounts |
![]() | |
std::shared_ptr< api::ExecutionContext > | _executionContext |
|
overridevirtual |
Apply given order to query's operation.
key,OperationOrderKey | object which defines order |
descending,bool |
Implements ledger::core::api::OperationQuery.
|
overridevirtual |
TODO Complete the operation query.
Implements ledger::core::api::OperationQuery.
|
overridevirtual |
Get applied filter on operation query.
Implements ledger::core::api::OperationQuery.
|
overridevirtual |
Add limit to the operation query results.
count,64-bit | integer |
Implements ledger::core::api::OperationQuery.
|
overridevirtual |
Add offset to the operation query.
from,64-bit | integer |
Implements ledger::core::api::OperationQuery.
|
overridevirtual |
TODO
Implements ledger::core::api::OperationQuery.