Expand description
The implementation of a key-value store view. We implement two types:
-
The first type
KeyValueStoreViewimplements View and the function ofKeyValueStore. -
The second type
ViewContainerencapsulatesKeyValueStoreViewand provides the following functionalities:- The
Clonetrait - a
write_batchthat takes a&selfinstead of a&mut self - a
write_batchthat 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§
- KeyValue
Store View - A view that represents the functions of
KeyValueStore. - Size
Data - A pair containing the key and value size.
- View
Container - A virtual DB client using a
KeyValueStoreViewas a backend (testing only).
Enums§
- View
Container Error - The error type for
ViewContaineroperations.
Type Aliases§
- Hashed
KeyValue Store View - Type wrapping
KeyValueStoreViewwhile memoizing the hash. - Historically
Hashed KeyValue Store View - Wrapper around
KeyValueStoreViewto compute hashes based on the history of changes.