Akatas_Kingdom/server/Database.hpp

26 lines
303 B
C++

#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 */