sqjson 0.1.9

A simple JSON-based embedded database
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use thiserror::Error;

#[derive(Debug, Error)]
pub enum DbError {
    #[error("IO error")]
    Io(#[from] std::io::Error),

    #[error("Page out of bounds")]
    PageOutOfBounds,

    #[error("JSON error")]
    Json(#[from] serde_json::Error),

    #[error("Other error: {0}")]
    Other(String),
}