xref: /netbsd-src/external/public-domain/sqlite/man/SQLITE_VERSION.3 (revision d909946ca08dceb44d7d0f22ec9488679695d976)
1.Dd $Mdocdate$
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.Fd #define SQLITE_VERSION
11.Fd #define SQLITE_VERSION_NUMBER
12.Fd #define SQLITE_SOURCE_ID
13.Sh DESCRIPTION
14The SQLITE_VERSION C preprocessor macro in the sqlite3.h
15header evaluates to a string literal that is the SQLite version in
16the format "X.Y.Z" where X is the major version number (always 3 for
17SQLite3) and Y is the minor version number and Z is the release number.
18The SQLITE_VERSION_NUMBER C preprocessor macro
19resolves to an integer with the value (X*1000000 + Y*1000 + Z) where
20X, Y, and Z are the same numbers used in SQLITE_VERSION.
21The SQLITE_VERSION_NUMBER for any given release of SQLite will also
22be larger than the release from which it is derived.
23Either Y will be held constant and Z will be incremented or else Y
24will be incremented and Z will be reset to zero.
25.Pp
26Since version 3.6.18, SQLite source code has been stored in the <a
27href="http://www.fossil-scm.org/">Fossil configuration management system</a>.
28The SQLITE_SOURCE_ID macro evaluates to a string which identifies a
29particular check-in of SQLite within its configuration management system.
30The SQLITE_SOURCE_ID string contains the date and time of the check-in
31(UTC) and an SHA1 hash of the entire source tree.
32.Pp
33.Sh SEE ALSO
34.Xr sqlite3_version 3 ,
35.Xr SQLITE_VERSION 3
36