Akatas_Kingdom/Database.hpp

26 lines
303 B
C++
Raw Normal View History

2021-12-29 16:00:32 +01:00
#include <string>
#include <iostream>
#include <libpq-fe.h>
#include <vector>
#ifndef DATABASE_H
#define DATABASE_H
class Database
{
private:
2021-12-29 16:00:32 +01:00
PGconn *dbconn;
public:
Database();
2021-12-28 15:32:39 +01:00
2021-12-29 16:00:32 +01:00
void execute(std::string cmd);
PGresult* fetch(std::string cmd);
2021-12-28 15:32:39 +01:00
void disconnect();
};
#endif /* DATABASE_H */