Small. Fast. Reliable.
Choose any three.

SQLite C Interface

Compile-Time Library Version Numbers

#define SQLITE_VERSION         "3.5.3"
#define SQLITE_VERSION_NUMBER 3005003

The #define in the sqlite3.h header file named SQLITE_VERSION resolves to a string literal that identifies the version of the SQLite library in the format "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 #define resolves to an integer with the value (X*1000000 + Y*1000 + Z) where X, Y, and Z are as with SQLITE_VERSION. 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/12/14 14:37:57 UTC