noxu-db 6.2.0

Noxu DB - An embedded transactional database engine
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Operation status for database operations.
//!
//! Shared between database and cursor modules.

/// Operation status returned by database and cursor operations.
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum OperationStatus {
    /// Operation succeeded.
    Success,
    /// Record not found.
    NotFound,
    /// Key already exists (for NoOverwrite operations).
    KeyExists,
    /// The record at the cursor position was deleted by another operation
    /// while the cursor was positioned on it.  JE: `OperationStatus.KEYEMPTY`.
    /// Returned by `putCurrent` / `delete` when the current slot is defunct.
    KeyEmpty,
}