![]() |
HausmiSEP implementation for a Data Driver with access to an embedded SqLite database. More...
Classes | |
class | SqLiteResultSet |
SqLite DBResultSet implementation. More... | |
class | SqLiteStatement |
SqLite DBStatement implementation. More... | |
class | SqLiteEnvironment |
SqLite DBEnvironment implementation. More... | |
class | RAII_mutex |
RAII Wrapper for a sqlite3_db_mutex. More... | |
struct | SQLResultValue |
Generic result type for sqLite. More... | |
struct | SQLResultValue_Int |
Particular result type as an intenger. More... | |
struct | SQLResultValue_String |
Particular result type as a string. More... | |
struct | SQLResultData |
class | SQLiteHeap |
SqLite has the capacity of using the program heap or its particular heap for every dynamic operation. More... | |
Typedefs | |
typedef Array< SQLResultValue > | SQLResultRow |
typedef Array< SQLResultRow > | SQLResultTable |
Functions | |
string | SqLiteWhatMethod (string &pMessageRef, exception *pExceptionPtr) |
void | feedMetadata (sqlite3_stmt *pStatement, SQLResultData *pResultData) |
void | feedData (sqlite3_stmt *pStatement, SQLResultData *pResultData) |
void | feedParameters (sqlite3_stmt *pStatement, DBParameters &pParametersRef) |
Variables | |
const DBType | DBT_SQL2BW [] = {DBT_Null,DBT_Number,DBT_Float,DBT_String,DBT_Binary,DBT_Null} |
HausmiSEP implementation for a Data Driver with access to an embedded SqLite database.
It is provided for general usage and as an example to create more database access drivers.
Take into consideration how the driver is used as an opaque type for not to expose the internal implementation.
Definition at line 114 of file DBSqLite.cpp.
Definition at line 115 of file DBSqLite.cpp.
void HSEPDataSqLite::feedData | ( | sqlite3_stmt * | pStatement, |
SQLResultData * | pResultData | ||
) |
Definition at line 326 of file DBSqLite.cpp.
References HSEPData::DBMetadataField::aColumnType, HSEPDataSqLite::SQLResultData::aMetadata, HSEPData::DBT_Number, HSEPData::DBT_String, HSEP::Array< T >::forEach(), and HSEP::Array< T >::push().
Referenced by HSEPDataSqLite::SqLiteStatement::executeQueryPtr().
void HSEPDataSqLite::feedMetadata | ( | sqlite3_stmt * | pStatement, |
SQLResultData * | pResultData | ||
) |
Definition at line 309 of file DBSqLite.cpp.
References HSEPData::DBMetadataField::aColumnName, HSEPData::DBMetadataField::aColumnType, HSEPDataSqLite::SQLResultData::aMetadata, HSEPDataSqLite::SQLResultData::aPositions, DBT_SQL2BW, HSEP::Array< T >::push(), and HSEP::Dictionary< T >::put().
Referenced by HSEPDataSqLite::SqLiteStatement::executeQueryPtr().
void HSEPDataSqLite::feedParameters | ( | sqlite3_stmt * | pStatement, |
DBParameters & | pParametersRef | ||
) |
Definition at line 382 of file DBSqLite.cpp.
References HSEPData::DBT_Number, and HSEPData::DBT_String.
Referenced by HSEPDataSqLite::SqLiteStatement::executeQueryPtr().
string HSEPDataSqLite::SqLiteWhatMethod | ( | string & | pMessageRef, |
exception * | pExceptionPtr | ||
) |
Definition at line 38 of file DBSqLite.cpp.
Referenced by HSEPDataSqLite::SqLiteEnvironment::connect(), HSEPDataSqLite::SqLiteEnvironment::createStatementPtr(), and HSEPDataSqLite::SqLiteEnvironment::~SqLiteEnvironment().
const DBType HSEPDataSqLite::DBT_SQL2BW[] = {DBT_Null,DBT_Number,DBT_Float,DBT_String,DBT_Binary,DBT_Null} |
Definition at line 306 of file DBSqLite.cpp.
Referenced by feedMetadata().