This commit is contained in:
Wolfgang Hottgenroth
2013-03-27 20:07:19 +01:00
commit 52fc172950
4 changed files with 120 additions and 0 deletions

15
Database.cpp Normal file
View File

@ -0,0 +1,15 @@
#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);
}