NCBI C++ ToolKit
Public Member Functions | Private Attributes | List of all members
CSQLITE_HandleFactory Class Reference

Search Toolkit Book for CSQLITE_HandleFactory

Object factory creating sqlite3* handles. More...

#include <db/sqlite/sqlitewrapp.hpp>

+ Collaboration diagram for CSQLITE_HandleFactory:

Public Member Functions

 CSQLITE_HandleFactory (CSQLITE_Connection *conn)
sqlite3 * CreateObject (void)
 Create new database handle. More...
void DeleteObject (sqlite3 *handle)
 Destroy database handle. More...

Private Attributes

 Connection object this factory is bound to. More...

Detailed Description

Object factory creating sqlite3* handles.

For internal use in CSQLITE_Connection's internal pool.

Definition at line 123 of file sqlitewrapp.hpp.

Constructor & Destructor Documentation

◆ CSQLITE_HandleFactory()

CSQLITE_HandleFactory::CSQLITE_HandleFactory ( CSQLITE_Connection conn)

Definition at line 376 of file sqlitewrapp.cpp.

Member Function Documentation

◆ CreateObject()

sqlite3 * CSQLITE_HandleFactory::CreateObject ( void  )

◆ DeleteObject()

void CSQLITE_HandleFactory::DeleteObject ( sqlite3 *  handle)

Destroy database handle.

Definition at line 415 of file sqlitewrapp.cpp.

References NULL, SQLITE_LOG_ERROR, and stmt.

Member Data Documentation

◆ m_Conn

CSQLITE_Connection* CSQLITE_HandleFactory::m_Conn

Connection object this factory is bound to.

Definition at line 136 of file sqlitewrapp.hpp.

Referenced by CreateObject().

The documentation for this class was generated from the following files:
Modified on Sun Jun 23 05:19:21 2024 by rev. 669887