Savarese Software Research Corporation
InitializeLibrary Struct Reference

InitializeLibrary is a utility class whose constructor calls sqlite3_initialize() and whose destructor calls sqlie3_shutdown(). More...

#include <InitializeLibrary.h>

List of all members.

Public Member Functions

 InitializeLibrary ()
 Initializes the database library by calling sqlite3_initialize().
 ~InitializeLibrary ()
 Releases all database library resources by calling sqlite3_shutdown().

Detailed Description

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.

Definition at line 48 of file InitializeLibrary.h.


Constructor & Destructor Documentation

Initializes the database library by calling sqlite3_initialize().

Definition at line 52 of file InitializeLibrary.h.

Releases all database library resources by calling sqlite3_shutdown().

Definition at line 58 of file InitializeLibrary.h.


The documentation for this struct was generated from the following file:

Savarese Software Research Corporation
Copyright © 2006-2011 Savarese Software Research Corporation. All rights reserved.