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

22 lines
335 B
C++

#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_ */