neptune-database 0.14.0

LevelDB-backed async storage layer (schema, vectors, maps) used by neptune-cash
1
2
3
4
5
6
7
8
9
10
11
use super::enums::WriteOperation;

/// Represents pending database write operations
#[derive(Debug, Clone, Default)]
pub(super) struct PendingWrites {
    /// list of write ops, newest at end.  cleared once persisted to DB.
    pub(super) write_ops: Vec<WriteOperation>,

    /// increments each time write ops are persisted to DB.
    pub(super) persist_count: usize,
}