hydracache-sqlx 0.8.0

SQLx adapter helpers for HydraCache query result caching.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use hydracache_db::DbCacheError;
use thiserror::Error;

/// Error type returned by SQLx-facing cache helpers.
#[derive(Debug, Error)]
pub enum SqlxCacheError {
    /// The generic database cache adapter or underlying cache failed.
    #[error(transparent)]
    Cache(#[from] DbCacheError),
}

/// SQLx adapter result type.
pub type Result<T> = std::result::Result<T, SqlxCacheError>;