#include "postgres_indexer.hpp"


Public Member Functions | |
| PostgresIndexer (soci::session &sql) | |
| void | committedTxHash (const shared_model::interface::types::HashType &committed_tx_hash) override |
| Store a committed tx hash. More... | |
| void | rejectedTxHash (const shared_model::interface::types::HashType &rejected_tx_hash) override |
| Store a rejected tx hash. More... | |
| void | txPositions (shared_model::interface::types::AccountIdType const &account, shared_model::interface::types::HashType const &hash, boost::optional< shared_model::interface::types::AssetIdType > &&asset_id, shared_model::interface::types::TimestampType const ts, TxPosition const &position) override |
| Index tx info. More... | |
| iroha::expected::Result< void, std::string > | flush () override |
Public Member Functions inherited from iroha::ametsuchi::Indexer | |
| virtual | ~Indexer ()=default |
| PostgresIndexer::PostgresIndexer | ( | soci::session & | sql | ) |

|
overridevirtual |
Store a committed tx hash.
Implements iroha::ametsuchi::Indexer.
|
overridevirtual |
Flush the indices to storage. Makes the effects of new indices (that were created before this call) visible to other components. Discards indexer inner state on success.
Implements iroha::ametsuchi::Indexer.
|
overridevirtual |
Store a rejected tx hash.
Implements iroha::ametsuchi::Indexer.
|
overridevirtual |
| std::vector<shared_model::interface::types::AccountIdType> iroha::ametsuchi::PostgresIndexer::account |
| std::vector< boost::optional<shared_model::interface::types::AssetIdType> > iroha::ametsuchi::PostgresIndexer::asset_id |
| std::vector<std::string> iroha::ametsuchi::PostgresIndexer::hash |
| std::vector<size_t> iroha::ametsuchi::PostgresIndexer::height |
| std::vector<size_t> iroha::ametsuchi::PostgresIndexer::index |
| std::vector<std::string> iroha::ametsuchi::PostgresIndexer::status |
| std::vector<shared_model::interface::types::TimestampType> iroha::ametsuchi::PostgresIndexer::ts |