Name

sqlite3_libversion_number() — Get the SQLite library version

Definition

int sqlite3_libversion_number( );
Returns

The SQLite library version as a number.

Description

This function returns the SQLite library version as an integer. The number is in the form Mmmmppp, with M being the major version, m the minor, and p the point release. Smaller steps are not included. The version number of SQLite v3.6.23.1 (and v3.6.23) is 3006023.

This value is also available at compile time as the SQLITE_VERSION_NUMBER macro. By comparing the macro used at compile time to the value returned at runtime, an application can verify that it is linking against a proper version of the library.

See Also

sqlite3_libversion(), sqlite3_sourceid()