|
Each release of the Berkeley DB library has a major version number, a minor version number, and a patch number.
The major version number changes only when major portions of the Berkeley DB functionality have been changed. In this case, it may be necessary to significantly modify applications in order to upgrade them to use the new version of the library.
The minor version number changes when Berkeley DB interfaces have changed, and the new release is not entirely backward compatible with previous releases. To upgrade applications to the new version, they must be recompiled, and potentially, minor modifications made, (e.g., the order of arguments to a function might have changed).
The patch number changes on each release. If only the patch number has changed in a release, applications do not need to be recompiled, and they can be upgraded to the new version by simply installing a new version of the shared library.
Internal Berkeley DB interfaces may change at any time and during any release, without warning. This means that the library must be entirely recompiled and reinstalled when upgrading to new releases of the library, as there is no guarantee that modules from the current version of the library will interact correctly with modules from a previous release.
To retrieve the Berkeley DB version information, applications should use the db_version interface. In addition to the above information, the db_version interface returns a string encapsulating the version information, suitable for display to a user.