6.3. Determining the library version at runtime

The functions dbi_version and dbi_version_numeric provide access to the package version. The former returns the name and the version as a string (mainly for display purposes), whereas the latter returns an integer value for easy comparisons, defined as ((major*10000) + (minor * 100) + patch).