ThinSQLite++
A thin, safe and convenient modern C++ wrapper for SQLite API.
|
ThinSQLite++ can be used in SQLite++ extensions.
To use it in an extension you need to either:
<sqlite3ext.h>
and specify SQLITE_EXTENSION_INIT3
before including any of ThinSQLite++ headers. For example: THINSQLITEPP_BUILDING_EXTENSION
to 1 using your build system (or in code before including any ThinSQLite++ headers). For example: Either way achieves the same effect.
The extension's entry point should look similar to the below:
Note that the first parameter of the sqlite3_extension_init
can safely be declared as thinsqlitepp::database *
rather than sqlite3 *
. This is due to the fact that ThinSQLite++ classes are fake wrappers