Name

sqlite3_libversion() — Get the SQLite library version

Definition

const char* sqlite3_libversion( );
Returns

The SQLite library version as a UTF-8 encoded string.

Description

This function returns the SQLite library version as a string. 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 value returned at runtime, an application can verify that it is linking against the correct version of the library.

This function is exposed to the SQL environment as the SQL function sqlite_version().

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.