pub fn check_db_version_file<P: AsRef<Path>>(
db_path: P,
) -> Result<(), DatabaseVersionError>
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.