pub fn check_db_version_file<P>(db_path: P) -> Result<(), DatabaseVersionError>
Available on crate feature
provider
only.Expand description
Checks the database version file with DB_VERSION_FILE_NAME
name.
Returns Ok if file is found and has one line which equals to DB_VERSION
.
Otherwise, returns different DatabaseVersionError
error variants.