childprot/Database.cpp
Wolfgang Hottgenroth 52fc172950 initial
2013-03-27 20:07:19 +01:00

16 lines
254 B
C++

#include "Database.hpp"
using namespace std;
DatabaseHandle::DatabaseHandle(const string& filename) {
if (SQLITE_OK != sqlite3_open(filename.c_str(), &dbh))
throw DatabaseError();
}
DatabaseHandle::~DatabaseHandle() {
sqlite3_close(dbh);
}