sqlx_migrator 0.4.0

Migrator for writing sqlx migration using Rust instead of SQL
Documentation
//! Module for library error

/// Error enum to store different types of error
#[derive(Debug, thiserror::Error)]
#[non_exhaustive]
pub enum Error {
    /// Error type created from error raised by sqlx
    #[error(transparent)]
    SqlxError(#[from] sqlx::error::Error),

    /// Error for failed to create migrations plan
    #[error("Failed to create migrations plan")]
    FailedToCreateMigrationPlan,

    /// Error for irreversible operation
    #[error("Operation is irreversible")]
    IrreversibleOperation,

    /// Error for pending migration present
    #[error("Pending migration present")]
    PendingMigrationPresent,

    /// Error when migration name is only present but not app name
    #[error("App name required. Only migration name present")]
    AppNameRequired,
}