WIP, adding remote test client/server
This commit is contained in:
@@ -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");
|
||||
|
||||
@@ -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;
|
||||
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user