Skip to main content

mark_applied_through

Function mark_applied_through 

Source
pub async fn mark_applied_through(
    conn: &impl DbConnection,
    migrations_dir: &str,
    last_name: &str,
    dialect: Dialect,
) -> Result<u32, MigrateError>
Expand description

Records every journal entry up to and including last_name as applied, without executing their SQL.

The usual adoption shape: a project knows “my database is at 0016”, not the list of sixteen file names. Skipping, counting, and atomicity match mark_applied.

§Errors

Same as mark_applied; MigrateError::NotInJournal when last_name itself has no journal entry.