Project

General

Profile

Download (370 Bytes) Statistics
| Branch: | Tag: | Revision:
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);
}