Module schema

Source
Expand description

A type-safe interface over DB column families.

Traits§

KeyCodec
This trait defines a type that can serve as a Schema::Key.
KeyDecoder
Implementors of this trait can be used to decode keys in the given Schema.
KeyEncoder
Implementors of this trait can be used to encode keys in the given Schema.
Schema
A Schema is a type-safe interface over a specific column family in a DB. It always a key type (KeyCodec) and a value type (ValueCodec).
ValueCodec
This trait defines a type that can serve as a Schema::Value.

Type Aliases§

ColumnFamilyName
Crate users are expected to know column family names beforehand, so they can have static lifetimes.
Result
A core::result::Result alias with CodecError as the error type.