Kagome
Polkadot Runtime Engine in C++17
write_batch.hpp
Go to the documentation of this file.
1 
6 #ifndef KAGOME_WRITE_BATCH_HPP
7 #define KAGOME_WRITE_BATCH_HPP
8 
10 
11 namespace kagome::storage::face {
12 
18  template <typename K, typename V>
19  struct WriteBatch : public Writeable<K, V> {
24  virtual outcome::result<void> commit() = 0;
25 
29  virtual void clear() = 0;
30  };
31 
32 } // namespace kagome::storage::face
33 
34 #endif // KAGOME_WRITE_BATCH_HPP
virtual outcome::result< void > commit()=0
Writes batch.
An abstraction over a storage, which can be used for batch writes.
Definition: write_batch.hpp:19
An mixin for modifiable map.
Definition: writeable.hpp:19
virtual void clear()=0
Clear batch.