Module version

Available on crate feature provider only.
Expand description

Database version utils.

Enums§

DatabaseVersionError
Error when checking a database version using check_db_version_file

Constants§

DB_VERSION
The version of the database stored in the DB_VERSION_FILE_NAME file in the same directory as database.
DB_VERSION_FILE_NAME
The name of the file that contains the version of the database.

Functions§

check_db_version_file
Checks the database version file with DB_VERSION_FILE_NAME name.
create_db_version_file
Creates a database version file with DB_VERSION_FILE_NAME name containing DB_VERSION string.
db_version_file_path
Returns a database version file path.
get_db_version
Returns the database version from file with DB_VERSION_FILE_NAME name.