run_migrator_with_lock

Function run_migrator_with_lock 

Source
pub async fn run_migrator_with_lock<M>(
    database: &DatabaseConnection,
    options: &MigrationLockOptions,
    steps: Option<u32>,
) -> Result<(), DbErr>
where M: MigratorTrait + 'static,
Expand description

Runs a standard SeaORM migrator while holding the backend migration lock.

ยงErrors

Returns any migration coordination, transaction, lock, or [MigratorTrait::up] failure.