Module linera_views::views::key_value_store_view
source · Expand description
The implementation of a key-value store view. We implement two types:
-
The first type
KeyValueStoreView
implements View and the function ofKeyValueStore
. -
The second type
ViewContainer
encapsulatesKeyValueStoreView
and provides the following functionalities:- The
Clone
trait - a
write_batch
that takes a&self
instead of a&mut self
- a
write_batch
that writes in the context instead of writing of the view.
- The
Currently, that second type is only used for tests.
Key tags to create the sub-keys of a KeyValueStoreView
on top of the base key.
Structs§
- A view that represents the functions of
KeyValueStore
. - A pair containing the key and value size.
- A virtual DB client using a
KeyValueStoreView
as a backend (testing only).
Enums§
- The error type for
ViewContainer
operations.