#include <cstdio>
#include <cstdlib>
#include <string>
#include "SQLite/sqlite3.h"
Go to the source code of this file.
◆ SQLITE3_CALL
| #define SQLITE3_CALL |
( |
|
func | ) |
SQLite3CallHelper(func, __FILE__, __LINE__) |
◆ SQLITE3_EXEC
| #define SQLITE3_EXEC |
( |
|
database, |
|
|
|
sql, |
|
|
|
callback |
|
) |
| |
Value: { \
char* err_msg = nullptr; \
const int result_code = \
sqlite3_exec(database, sql,
callback,
nullptr, &err_msg); \
if (result_code != SQLITE_OK) { \
fprintf(stderr, "SQLite error [%s, line %i]: %s\n", __FILE__, \
__LINE__, err_msg); \
sqlite3_free(err_msg); \
} \
}
std::function< void(std::shared_ptr< core::Tensor >)> callback
Definition at line 35 of file sqlite3_utils.h.