WIP, Remote Client/Server, fist working artist list!
This commit is contained in:
+2
-2
@@ -31,7 +31,7 @@ Artist::getNone(Wt::Dbo::Session& session)
|
||||
}
|
||||
|
||||
Wt::Dbo::collection<Artist::pointer>
|
||||
Artist::getAll(Wt::Dbo::Session& session)
|
||||
Artist::getAll(Wt::Dbo::Session& session, std::size_t offset, std::size_t size)
|
||||
{
|
||||
return session.find<Artist>();
|
||||
return session.find<Artist>().offset(offset).limit(size);
|
||||
}
|
||||
|
||||
@@ -27,7 +27,7 @@ class Artist
|
||||
// Accessors
|
||||
static pointer getByName(Wt::Dbo::Session& session, const std::string& name);
|
||||
static pointer getNone(Wt::Dbo::Session& session);
|
||||
static Wt::Dbo::collection<pointer> getAll(Wt::Dbo::Session& session);
|
||||
static Wt::Dbo::collection<pointer> getAll(Wt::Dbo::Session& session, std::size_t offset, std::size_t size);
|
||||
|
||||
const std::string& getName(void) const { return _name; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user