Database access and manipulation functions.
More...
#include <iostream>
#include <sqlite3.h>
#include <string>
Go to the source code of this file.
|
void | sql_return_check (const int ret_code, const int expected_code, const char *fileName, const std::size_t lineNum) |
|
Database access and manipulation functions.
- Author
- Lee J. O'Riordan (lee.o.nosp@m.rior.nosp@m.dan@i.nosp@m.chec.nosp@m..ie)
- Version
- 0.1
- Date
- 2019-03-11
Definition in file db_helper.hpp.
◆ SQL_RETURN_CHECK
#define SQL_RETURN_CHECK |
( |
|
x, |
|
|
|
y |
|
) |
| |
◆ sql_return_check()
void sql_return_check |
( |
const int |
ret_code, |
|
|
const int |
expected_code, |
|
|
const char * |
fileName, |
|
|
const std::size_t |
lineNum |
|
) |
| |
|
inline |
Definition at line 20 of file db_helper.hpp.
25 if ( ret_code != expected_code ) {
26 std::cerr <<
"SQL error: FILE: " << fileName <<
"\t LINE: " << lineNum <<
"\t RETURN_CODE: " << ret_code << std::endl;