Small. Fast. Reliable.
Choose any three.

About Sitemap Documentation Download License News Support

## SQLite C Interface

## Compile-Time Library Version Numbers

>     #define SQLITE_VERSION        "3.6.21"
>     #define SQLITE_VERSION_NUMBER 3006021
>     #define SQLITE_SOURCE_ID      "2009-12-07 14:48:51 78f6baffb0289a173b0bb56bc54bf0f32e6c957d"

The SQLITE_VERSION and SQLITE_VERSION_NUMBER #defines in the sqlite3.h file specify the version of SQLite with which that header file is associated.

The "version" of SQLite is a string of the form "W.X.Y" or "W.X.Y.Z". The W value is major version number and is always 3 in SQLite3. The W value only changes when backwards compatibility is broken and we intend to never break backwards compatibility. The X value is the minor version number and only changes when there are major feature enhancements that are forwards compatible but not backwards compatible. The Y value is the release number and is incremented with each release but resets back to 0 whenever X is incremented. The Z value only appears on branch releases.

The SQLITE_VERSION_NUMBER is an integer that is computed as follows:

>     SQLITE_VERSION_NUMBER = W*1000000 + X*1000 + Y

Since version 3.6.18, SQLite source code has been stored in the fossil configuration management system. The SQLITE_SOURCE_ID macro is a string which identifies a particular check-in of SQLite within its configuration management system. The string contains the date and time of the check-in (UTC) and an SHA1 hash of the entire source tree.

See also: sqlite3_libversion(), sqlite3_libversion_number(), sqlite3_sourceid(), sqlite_version() and sqlite_source_id().

Requirements: H10011 H10014

See also lists of Objects, Constants, and Functions.