1.Dd January 24, 2024 2.Dt SQLITE_VERSION 3 3.Os 4.Sh NAME 5.Nm SQLITE_VERSION , 6.Nm SQLITE_VERSION_NUMBER , 7.Nm SQLITE_SOURCE_ID 8.Nd compile-Time library version numbers 9.Sh SYNOPSIS 10.In sqlite3.h 11.Fd #define SQLITE_VERSION 12.Fd #define SQLITE_VERSION_NUMBER 13.Fd #define SQLITE_SOURCE_ID 14.Sh DESCRIPTION 15The SQLITE_VERSION C preprocessor macro in the sqlite3.h 16header evaluates to a string literal that is the SQLite version in 17the format "X.Y.Z" where X is the major version number (always 3 for 18SQLite3) and Y is the minor version number and Z is the release number. 19The SQLITE_VERSION_NUMBER C preprocessor macro 20resolves to an integer with the value (X*1000000 + Y*1000 + Z) where 21X, Y, and Z are the same numbers used in SQLITE_VERSION. 22The SQLITE_VERSION_NUMBER for any given release of SQLite will also 23be larger than the release from which it is derived. 24Either Y will be held constant and Z will be incremented or else Y 25will be incremented and Z will be reset to zero. 26.Pp 27Since version 3.6.18 (dateof:3.6.18), SQLite 28source code has been stored in the Fossil configuration management 29system. 30The SQLITE_SOURCE_ID macro evaluates to a string which identifies a 31particular check-in of SQLite within its configuration management system. 32The SQLITE_SOURCE_ID string contains the date and time of the check-in 33(UTC) and a SHA1 or SHA3-256 hash of the entire source tree. 34If the source code has been edited in any way since it was last checked 35in, then the last four hexadecimal digits of the hash may be modified. 36.Pp 37.Sh IMPLEMENTATION NOTES 38These declarations were extracted from the 39interface documentation at line 120. 40.Bd -literal 41#define SQLITE_VERSION "3.45.1" 42#define SQLITE_VERSION_NUMBER 3045001 43#define SQLITE_SOURCE_ID "2024-01-30 16:01:20 e876e51a0ed5c5b3126f52e532044363a014bc594cfefa87ffb5b82257cc467a" 44.Ed 45.Sh SEE ALSO 46.Xr sqlite3_version 3 47