Last Update (partial) have to link every file in the right place
This commit is contained in:
25
server/Database.hpp
Normal file
25
server/Database.hpp
Normal file
@@ -0,0 +1,25 @@
|
||||
#include <string>
|
||||
#include <iostream>
|
||||
#include <libpq-fe.h>
|
||||
#include <vector>
|
||||
|
||||
#ifndef DATABASE_H
|
||||
#define DATABASE_H
|
||||
|
||||
class Database
|
||||
{
|
||||
private:
|
||||
|
||||
PGconn *dbconn;
|
||||
|
||||
public:
|
||||
Database();
|
||||
|
||||
void execute(std::string cmd);
|
||||
|
||||
PGresult* fetch(std::string cmd);
|
||||
|
||||
void disconnect();
|
||||
};
|
||||
|
||||
#endif /* DATABASE_H */
|
||||
Reference in New Issue
Block a user