initial
This commit is contained in:
15
Database.cpp
Normal file
15
Database.cpp
Normal 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);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user