Small, Fast, Reliable.
Choose any three.

About Sitemap Documentation Download License News Developers Support

## SQLite C Interface

### Compile-Time Library Version Numbers

>     #define SQLITE_VERSION         "3.5.2"
>     #define SQLITE_VERSION_NUMBER 3005002

The version of the SQLite library is contained in the sqlite3.h header file in a #define named SQLITE_VERSION. The SQLITE_VERSION macro resolves to a string constant.

The format of the version string is "X.Y.Z", where X is the major version number, Y is the minor version number and Z is the release number. The X.Y.Z might be followed by "alpha" or "beta". For example "3.1.1beta".

The X value is always 3 in SQLite. The X value only changes when backwards compatibility is broken and we intend to never break backwards compatibility. The Y value only changes when there are major feature enhancements that are forwards compatible but not backwards compatible. The Z value is incremented with each release but resets back to 0 when Y is incremented.

The SQLITE_VERSION_NUMBER is an integer with the value (X*1000000 + Y*1000 + Z). For example, for version "3.1.1beta", SQLITE_VERSION_NUMBER is set to 3001001. To detect if they are using version 3.1.1 or greater at compile time, programs may use the test (SQLITE_VERSION_NUMBER>=3001001).

See also: sqlite3_libversion() and sqlite3_libversion_number().

See also lists of Objects, Constants, and Functions.

This page last modified 2007/11/22 00:41:31 UTC