Name

sqlite3_version[] — Static version string

Definition

extern const char sqlite3_version[];

Description

This is not a function, but a static character array that holds the version string of the SQLite library. This is the same value returned by sqlite3_libversion(). The version string for SQLite v3.6.23 is "3.6.23". The version string for v3.6.23.1 is "3.6.23.1".

This value is also available at compile time as the SQLITE_VERSION macro. By comparing the macro used at compile time to the sqlite3_version value found in the current library, an application can verify that it is linking against the correct 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.