sapphire-retrieve 0.1.0

Markdown-based task and note manager that keeps your data alive as plain text - timeless like fossils
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use thiserror::Error;

#[derive(Debug, Error)]
pub enum Error {
    #[error("SQLite error: {0}")]
    Sqlite(#[from] rusqlite::Error),
    #[error("embedding error: {0}")]
    Embed(String),
    #[error("I/O error: {0}")]
    Io(#[from] std::io::Error),
    #[error(
        "retrieve DB schema too new: DB version {db_version}, app version {app_version}; \
         delete the retrieve DB file and re-sync"
    )]
    SchemaTooNew { db_version: i32, app_version: i32 },
}

pub type Result<T> = std::result::Result<T, Error>;