Enum migra::errors::DbKind[][src]

pub enum DbKind {
    DatabaseConnection,
    OpenTransaction,
    CommitTransaction,
    RollbackTransaction,
    CreateMigrationsTable,
    ApplySql,
    InsertMigration,
    DeleteMigration,
    GetAppliedMigrations,
}
Expand description

All kinds of errors with witch this crate works.

Variants

DatabaseConnection

Failed to database connection.

OpenTransaction

Failed to open transaction.

CommitTransaction

Failed to commit transaction.

RollbackTransaction

Failed to rollback transaction.

CreateMigrationsTable

Failed to create a migrations table.

ApplySql

Failed to apply SQL.

InsertMigration

Failed to insert a migration.

DeleteMigration

Failed to delete a migration.

GetAppliedMigrations

Failed to get applied migrations.

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.