Kagome
Polkadot Runtime Engine in C++17
batch_writeable.hpp
Go to the documentation of this file.
1 
6 #ifndef KAGOME_BATCH_WRITEABLE_HPP
7 #define KAGOME_BATCH_WRITEABLE_HPP
8 
9 #include <memory>
10 
13 
15 
22  template <typename K, typename V>
23  struct BatchWriteable {
24  virtual ~BatchWriteable() = default;
25 
30  virtual std::unique_ptr<WriteBatch<K, V>> batch() = 0;
31  };
32 
33 } // namespace kagome::storage::face
34 
35 #endif // KAGOME_BATCH_WRITEABLE_HPP
virtual std::unique_ptr< WriteBatch< K, V > > batch()=0
Creates new Write Batch - an object, which can be used to efficiently write bulk data.
A mixin for a map that supports batching for efficiency of modifications.