root/software/sqlite_poc/DBManager.cc @ 0fc29199
| 88cf406f | David Sorber | #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;
|
|||
//~ }
|