2018-11-03 17:12:20 +01:00
|
|
|
#ifndef CATEGORYDAOSQLITE_H
|
|
|
|
#define CATEGORYDAOSQLITE_H
|
|
|
|
|
|
|
|
#include "categorydao.h"
|
|
|
|
#include "sqlitedao.h"
|
2022-04-03 11:11:28 +02:00
|
|
|
#include "../page.h"
|
2018-11-03 17:12:20 +01:00
|
|
|
class CategoryDaoSqlite : public CategoryDao, protected SqliteDao
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
CategoryDaoSqlite();
|
|
|
|
std::vector<std::string> fetchList(QueryOption o) override;
|
2022-04-03 11:11:28 +02:00
|
|
|
std::vector<Page> fetchMembers(std::string name, QueryOption o) override;
|
2018-11-03 17:12:20 +01:00
|
|
|
void save(const Category &c) override;
|
|
|
|
void deleteCategory(std::string name) override;
|
|
|
|
std::optional<Category> find(std::string name) override;
|
|
|
|
using SqliteDao::SqliteDao;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // CATEGORYDAOSQLITE_H
|