|
#include <iostream>
|
|
|
|
#include "DBManager.h"
|
|
|
|
DBManager::DBManager(const std::string& db_path)
|
|
{
|
|
|
|
int rc = sqlite3_open(db_path.c_str(), &this->db);
|
|
if (rc)
|
|
{
|
|
std::cerr << "Uh-oh spaghetti O's" << std::endl;
|
|
}
|
|
else
|
|
{
|
|
std::cout << "WORKED" << std::endl;
|
|
}
|
|
|
|
numba = 17;
|
|
|
|
}
|
|
|
|
DBManager::~DBManager()
|
|
{
|
|
sqlite3_close(this->db);
|
|
}
|
|
|
|
void DBManager::test()
|
|
{
|
|
std::cout << "Numba: " << numba << std::endl;
|
|
}
|
|
|
|
|
|
//~ template<typename T>
|
|
//~ void DBManager::func(T foo)
|
|
//~ {
|
|
//~ std::cout << "Does this work??? " << foo << std::endl;
|
|
//~ }
|