21 lines
294 B
C++
21 lines
294 B
C++
#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);
|
|
|
|
} |