#ifndef DATABASE_HANDLER_HPP #define DATABASE_HANDLER_HPP #include #include #include namespace Database { // Long living class handling the database class Handler { public: Handler(boost::filesystem::path db); Wt::Dbo::Session& getSession() { return _session; } boost::filesystem::path getPath() const { return _path; } private: boost::filesystem::path _path; Wt::Dbo::backend::Sqlite3 _dbBackend; Wt::Dbo::Session _session; }; } // namespace Database #endif