#include <mmsdbsqlite.h>
Public Member Functions | |
MMSDBSQLite (DataSource *datasource=NULL) | |
???? | |
virtual | ~MMSDBSQLite () |
???? | |
void | connect () |
Opens connection to database. | |
void | disconnect () |
Close connection to database. | |
void | startTransaction () |
???? | |
void | commitTransaction () |
???? | |
void | rollbackTransaction () |
???? | |
int | query (string statement, MMSRecordSet *rs) |
This function executes given database query and puts the results in MMSRecordSet. | |
int | query (string statement) |
This function executes given database query. | |
int | getLastInsertedID () |
Returns the ID of the last inserted record. | |
Static Private Member Functions | |
static int | getResults (void *rs, int numCols, char **results, char **columnNames) |
???? | |
Private Attributes | |
sqlite3 * | dbhandle |
Definition at line 54 of file mmsdbsqlite.h.
MMSDBSQLite::MMSDBSQLite | ( | DataSource * | _datasource = NULL |
) |
MMSDBSQLite::~MMSDBSQLite | ( | ) | [virtual] |
int MMSDBSQLite::getResults | ( | void * | rs, | |
int | numCols, | |||
char ** | results, | |||
char ** | columnNames | |||
) | [static, private] |
void MMSDBSQLite::connect | ( | ) | [virtual] |
Opens connection to database.
datasource | DataSource object which contains required information for database |
Implements IMMSDB.
Definition at line 144 of file mmsdbsqlite.cpp.
void MMSDBSQLite::disconnect | ( | ) | [virtual] |
Close connection to database.
Implements IMMSDB.
Definition at line 166 of file mmsdbsqlite.cpp.
void MMSDBSQLite::startTransaction | ( | ) | [virtual] |
void MMSDBSQLite::commitTransaction | ( | ) | [virtual] |
void MMSDBSQLite::rollbackTransaction | ( | ) | [virtual] |
int MMSDBSQLite::query | ( | string | statement, | |
MMSRecordSet * | rs | |||
) | [virtual] |
This function executes given database query and puts the results in MMSRecordSet.
This method is used for select statements
statement | buffer with database query |
Implements IMMSDB.
Definition at line 186 of file mmsdbsqlite.cpp.
int MMSDBSQLite::query | ( | string | statement | ) | [virtual] |
This function executes given database query.
This method is used for insert, update and delete statements
statement | buffer with database query |
Implements IMMSDB.
Definition at line 219 of file mmsdbsqlite.cpp.
int MMSDBSQLite::getLastInsertedID | ( | ) | [virtual] |
Returns the ID of the last inserted record.
Implements IMMSDB.
Definition at line 246 of file mmsdbsqlite.cpp.
sqlite3* MMSDBSQLite::dbhandle [private] |
Definition at line 56 of file mmsdbsqlite.h.