WIP. Added User form

This commit is contained in:
emeric
2014-07-30 14:32:46 +02:00
parent b2bb2e0be1
commit 1f41f7f481
13 changed files with 695 additions and 39 deletions
+5
View File
@@ -21,6 +21,11 @@ User::getAll(Wt::Dbo::Session& session)
return std::vector<pointer>(res.begin(), res.end());
}
User::pointer
User::getById(Wt::Dbo::Session& session, std::string id)
{
return session.find<User>().where("id = ?").bind( id );
}
} // namespace Database