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.

Get Using SQLite now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.