docs
This commit is contained in:
parent
616cafb04a
commit
fa4e5c98d0
@ -28,6 +28,7 @@ use bytes::Bytes;
|
|||||||
/// Required length of prefixes.
|
/// Required length of prefixes.
|
||||||
pub const PREFIX_LEN: usize = 12;
|
pub const PREFIX_LEN: usize = 12;
|
||||||
|
|
||||||
|
/// Database value.
|
||||||
pub type DBValue = ElasticArray128<u8>;
|
pub type DBValue = ElasticArray128<u8>;
|
||||||
|
|
||||||
error_chain! {
|
error_chain! {
|
||||||
@ -43,9 +44,11 @@ error_chain! {
|
|||||||
/// Write transaction. Batches a sequence of put/delete operations for efficiency.
|
/// Write transaction. Batches a sequence of put/delete operations for efficiency.
|
||||||
#[derive(Default, Clone, PartialEq)]
|
#[derive(Default, Clone, PartialEq)]
|
||||||
pub struct DBTransaction {
|
pub struct DBTransaction {
|
||||||
|
/// Database operations.
|
||||||
pub ops: Vec<DBOp>,
|
pub ops: Vec<DBOp>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Database operation.
|
||||||
#[derive(Clone, PartialEq)]
|
#[derive(Clone, PartialEq)]
|
||||||
pub enum DBOp {
|
pub enum DBOp {
|
||||||
Insert {
|
Insert {
|
||||||
|
Loading…
Reference in New Issue
Block a user