19 #define SQL_RETURN_CHECK(x,y) sql_return_check(x, y, __FILE__, __LINE__) 21 const int expected_code,
23 const std::size_t lineNum){
25 if ( ret_code != expected_code ) {
26 std::cerr <<
"SQL error: FILE: " << fileName <<
"\t LINE: " << lineNum <<
"\t RETURN_CODE: " << ret_code << std::endl;
39 DBHelper(
const std::string filename) ;
48 int openDB(
const std::string filename);
void closeDB()
Closes the database if the DB pointer is open.
void sql_return_check(const int ret_code, const int expected_code, const char *fileName, const std::size_t lineNum)
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.