ferro-migration 0.2.54

Backend-portable migration helpers (backfill_random_hex, backfill_random_uuid, ...) for ferro applications using SeaORM.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Error type for ferro-migration helpers.

use sea_orm::DbErr;
use thiserror::Error;

/// Error variants for ferro-migration backfill helpers.
#[derive(Debug, Error)]
pub enum Error {
    /// The database backend is not supported by this helper.
    #[error("unsupported backend: {0}")]
    UnsupportedBackend(String),
}

impl From<Error> for DbErr {
    fn from(e: Error) -> Self {
        DbErr::Custom(e.to_string())
    }
}