|Initializes the database library by calling sqlite3_initialize(). |
|Releases all database library resources by calling sqlite3_shutdown(). |
InitializeLibrary is a utility class whose constructor calls sqlite3_initialize() and whose destructor calls sqlie3_shutdown().
Although it is not currently necessary to use this class and it would be desirable to hide this implementation detail, the SQLite library may in the future require explicit initialization of the library via sqlite3_initialize(). Therefore, it is recommended that all programs using the Database class instantiate InitializeLibrary at the beginning of their main(). That will guarantee that sqlite3_initialize() initializes the SQLite library before any database operations are performed and that sqlite3_shutdown() will be called before the program exits. This technique cannot be used for programs that continue to execute threads after main() terminates.
Constructor & Destructor Documentation
The documentation for this struct was generated from the following file: