root/software/sqlite_poc/DBManager.cc @ 6e4119a4
| 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
|
||||
{
|
||||
| 6e4119a4 | David Sorber | std::cout << "DB connected\n" << std::endl;
|
||
| 88cf406f | David Sorber | }
|
||
}
|
||||
DBManager::~DBManager()
|
||||
{
|
||||
sqlite3_close(this->db);
|
||||
}
|