WIP, adding remote test client/server

This commit is contained in:
emeric
2014-04-14 22:56:20 +02:00
parent 298f6fb885
commit 9409fadc63
22 changed files with 438 additions and 46 deletions
+3 -1
View File
@@ -5,7 +5,9 @@
DatabaseHandler::DatabaseHandler(boost::filesystem::path db)
: _dbBackend( db.string() )
:
_path(db),
_dbBackend( db.string() )
{
_session.setConnection(_dbBackend);
_session.mapClass<Genre>("genre");
+6 -2
View File
@@ -14,10 +14,14 @@ class DatabaseHandler
Wt::Dbo::Session& getSession() { return _session; }
boost::filesystem::path getPath() const { return _path; }
private:
Wt::Dbo::backend::Sqlite3 _dbBackend;
Wt::Dbo::Session _session;
boost::filesystem::path _path;
Wt::Dbo::backend::Sqlite3 _dbBackend;
Wt::Dbo::Session _session;
};