qswiki/database/sessiondaosqlite.h

22 linhas
534 B
C
Original Visão normal Histórico

2018-11-03 17:12:20 +01:00
#ifndef SESSIONDAOSQLITE_H
#define SESSIONDAOSQLITE_H
#include "sessiondao.h"
#include "../session.h"
#include "sqlitedao.h"
class SessionDaoSqlite : public SessionDao, protected SqliteDao
{
2023-02-01 18:54:11 +01:00
private:
void fillSession(int userid, Session &sess);
2018-11-03 17:12:20 +01:00
public:
SessionDaoSqlite();
void save(const Session &session) override;
std::optional<Session> find(std::string token) override;
void deleteSession(std::string token) override;
2023-02-01 18:54:11 +01:00
std::vector<Session> fetch() override;
2018-11-03 17:12:20 +01:00
using SqliteDao::SqliteDao;
};
#endif // SESSIONDAOSQLITE_H