pub fn get_db_version<P: AsRef<Path>>(
db_path: P,
) -> Result<u64, DatabaseVersionError>
Expand description
Returns the database version from file with DB_VERSION_FILE_NAME
name.
Returns Ok if file is found and contains a valid version.
Otherwise, returns different DatabaseVersionError
error variants.