| 
    Kagome
    
   Polkadot Runtime Engine in C++17 
   | 
 
An abstraction over a storage, which can be used for batch writes. More...
#include <write_batch.hpp>
Public Member Functions | |
| virtual outcome::result< void > | commit ()=0 | 
| Writes batch.  More... | |
| virtual void | clear ()=0 | 
| Clear batch.  More... | |
  Public Member Functions inherited from kagome::storage::face::Writeable< K, V > | |
| virtual | ~Writeable ()=default | 
| virtual outcome::result< void > | put (const K &key, const V &value)=0 | 
| Store value by key.  More... | |
| virtual outcome::result< void > | put (const K &key, V &&value)=0 | 
| virtual outcome::result< void > | remove (const K &key)=0 | 
| Remove value by key.  More... | |
An abstraction over a storage, which can be used for batch writes.
| K | key type | 
| V | value type | 
Definition at line 19 of file write_batch.hpp.
      
  | 
  pure virtual | 
Clear batch.
Implemented in kagome::storage::InMemoryBatch, kagome::storage::trie::TrieStorageBackendBatch, and kagome::storage::RocksDB::Batch.
      
  | 
  pure virtual | 
Writes batch.
Implemented in kagome::storage::InMemoryBatch, kagome::storage::trie::TrieStorageBackendBatch, and kagome::storage::RocksDB::Batch.