24 if(this->
db_ptr !=
nullptr ){
33 if(this->
db_ptr ==
nullptr){
36 int rc = sqlite3_open_v2( (
const char *) filename.c_str(), &this->
db_ptr, SQLITE_OPEN_READWRITE, NULL);
Database access and manipulation functions.
void closeDB()
Closes the database if the DB pointer is open.
#define SQL_RETURN_CHECK(x, y)
sqlite3 * getDBRef()
Returns a pointer to the DB object.
int openDB(const std::string filename)
Opens the requested database, and gives the return code of the operation. If the DB pointer has alrea...
std::string getFilename()
Get the name of the opened database.