28 lines
459 B
C++
28 lines
459 B
C++
#ifndef DATABASE_H
|
|
#define DATABASE_H
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
#include <map>
|
|
#include "../models/User.h"
|
|
|
|
class Database {
|
|
public:
|
|
Database();
|
|
~Database();
|
|
|
|
bool connect(const std::string& host,
|
|
const std::string& user,
|
|
const std::string& password,
|
|
const std::string& dbName);
|
|
|
|
void disconnect();
|
|
|
|
std::vector<User*> getAllUsers();
|
|
|
|
private:
|
|
bool isConnected;
|
|
};
|
|
|
|
#endif
|