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

21
Database.hpp Normal file
View File

@ -0,0 +1,21 @@
#ifndef DATABASE_HPP_
#define DATABASE_HPP_
#include <string>
#include <sqlite3.h>
class DatabaseError {};
// resource management class
class DatabaseHandle {
public:
DatabaseHandle(const std::string& filename);
~DatabaseHandle();
sqlite3 *getHandle() { return dbh; }
private:
sqlite3 *dbh;
};
#endif /* DATABASE_HPP_ */