pub trait RusqliteMigration: Migration {
    type Error: From<RusqliteError>;

    // Provided methods
    fn up(&self, _transaction: &Transaction<'_>) -> Result<(), Self::Error> { ... }
    fn down(&self, _transaction: &Transaction<'_>) -> Result<(), Self::Error> { ... }
}
Expand description

SQlite-specific trait for schema migrations.

Required Associated Types§

Provided Methods§

source

fn up(&self, _transaction: &Transaction<'_>) -> Result<(), Self::Error>

Apply a migration to the database using a transaction.

source

fn down(&self, _transaction: &Transaction<'_>) -> Result<(), Self::Error>

Revert a migration to the database using a transaction.

Implementors§