Parkmanne/db.cpp

21 lines
294 B
C++
Raw Normal View History

2019-06-25 00:09:33 +00:00
#include "headers/db.h"
namespace db
{
static int callback(void *NotUsed, int argc, char **argv, char **azColName){
int i;
for(i=0; i<argc; i++)
{
std::cout<<azColName[i]<<" = " << (argv[i] ? argv[i] : "NULL")<<"\n";
}
std::cout<<"\n";
return 0;
}
// sqlite3_close(db);
}