Téléverser les fichiers vers "/"
This commit is contained in:
27
Database.h
Normal file
27
Database.h
Normal file
@@ -0,0 +1,27 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user