Kagome
Polkadot Runtime Engine in C++17
|
#include <in_memory_batch.hpp>
Public Member Functions | |
InMemoryBatch (InMemoryStorage &db) | |
outcome::result< void > | put (const BufferView &key, const Buffer &value) override |
Store value by key. More... | |
outcome::result< void > | put (const BufferView &key, Buffer &&value) override |
outcome::result< void > | remove (const BufferView &key) override |
Remove value by key. More... | |
outcome::result< void > | commit () override |
Writes batch. More... | |
void | clear () override |
Clear batch. More... | |
Public Member Functions inherited from kagome::storage::face::Writeable< BufferView, Buffer > | |
virtual | ~Writeable ()=default |
Private Attributes | |
std::map< std::string, Buffer > | entries |
InMemoryStorage & | db |
Definition at line 15 of file in_memory_batch.hpp.
|
inlineexplicit |
Definition at line 18 of file in_memory_batch.hpp.
|
inlineoverridevirtual |
Clear batch.
Implements kagome::storage::face::WriteBatch< BufferView, Buffer >.
Definition at line 43 of file in_memory_batch.hpp.
|
inlineoverridevirtual |
Writes batch.
Implements kagome::storage::face::WriteBatch< BufferView, Buffer >.
Definition at line 36 of file in_memory_batch.hpp.
|
inlineoverridevirtual |
Store value by key.
key | key |
value | value |
Implements kagome::storage::face::Writeable< BufferView, Buffer >.
Definition at line 20 of file in_memory_batch.hpp.
|
inlineoverridevirtual |
Implements kagome::storage::face::Writeable< BufferView, Buffer >.
Definition at line 26 of file in_memory_batch.hpp.
|
inlineoverridevirtual |
Remove value by key.
key | K |
Implements kagome::storage::face::Writeable< BufferView, Buffer >.
Definition at line 31 of file in_memory_batch.hpp.
|
private |
Definition at line 49 of file in_memory_batch.hpp.
|
private |
Definition at line 48 of file in_memory_batch.hpp.