pub fn get_current_database_version<F>(
migrations: &BTreeMap<DatabaseVersion, F>,
) -> DatabaseVersion
Expand description
Verifies that all database migrations are defined contiguously and returns the “current” database version, which is one greater than the last key in the map.