Page: add id field

This commit is contained in:
2018-11-04 19:31:58 +01:00
parent b6cdf9a088
commit 099f6533f8
4 changed files with 11 additions and 8 deletions

View File

@@ -13,11 +13,11 @@ class PageDaoSqlite : public PageDao, protected SqliteDao
{
}
void deletePage(std::string page) override;
bool exists(int id) const override;
bool exists(unsigned int id) const override;
bool exists(std::string name) const override;
void save(const Page &page) override;
std::optional<Page> find(std::string name) override;
std::optional<Page> find(int id) override;
std::optional<Page> find(unsigned int id) override;
std::vector<std::string> getPageList(QueryOption option) override;
std::vector<std::string> fetchCategories(std::string pagename, QueryOption option) override;
using SqliteDao::SqliteDao;