claviron-db 0.2.2

Typed database configuration and reloadable SQLx pools for Claviron
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#[derive(thiserror::Error, Debug)]
pub enum Error {
    #[error("db config io: {0}")]
    Io(#[from] std::io::Error),
    #[cfg(feature = "server")]
    #[error("db config: {0}")]
    Config(#[from] claviron_runtime::congif::Error),
    #[error("db config invalid: {0}")]
    Invalid(String),
    #[error("db pool: {0}")]
    Sqlx(#[from] sqlx::Error),
}

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