qswiki/database/userdaosqlite.h

24 baris
524 B
C
Mentah Pandangan Normal Riwayat

2018-11-03 17:12:20 +01:00
#ifndef USERDAOSQLITE_H
#define USERDAOSQLITE_H
#include <string>
#include <optional>
#include <vector>
#include "userdao.h"
#include "sqlitedao.h"
class UserDaoSqlite : public UserDao, protected SqliteDao
{
public:
bool exists(std::string username);
std::optional<User> find(std::string username);
std::optional<User> find(int id);
2021-09-26 15:05:15 +02:00
std::vector<User> list(QueryOption o);
2018-11-03 17:12:20 +01:00
void deleteUser(std::string username);
void save(const User &u);
using SqliteDao::SqliteDao;
UserDaoSqlite();
};
#endif // USERDAOSQLITE_H