version

Module: espressodb.management.utilities.version

Tools to keep track of the current repository version and database.

get_db_info()[source]

Extract database informations from the settings.

Return type

Tuple[Optional[str], Optional[str]]

Returns

The name of the db and the name of the db user if found.

Note

.sqlite databases do not specify a user.

get_repo_version()[source]

Finds information about the EspressoDB repository if possible.

Only works if EspressoDB is installed from the github repository.

Return type

Tuple[Optional[str], Optional[str]]

Returns

The branch and the git tag-commit version as strings if found. If not installed (and symlinked from the repo), returns the PyPi version.