Skip to main content

hydracache_sqlx/
error.rs

1use hydracache_db::DbCacheError;
2use thiserror::Error;
3
4/// Error type returned by SQLx-facing cache helpers.
5#[derive(Debug, Error)]
6pub enum SqlxCacheError {
7    /// The generic database cache adapter or underlying cache failed.
8    #[error(transparent)]
9    Cache(#[from] DbCacheError),
10}
11
12/// SQLx adapter result type.
13pub type Result<T> = std::result::Result<T, SqlxCacheError>;