.
This commit is contained in:
11
Database.hpp
11
Database.hpp
@@ -1,4 +1,7 @@
|
||||
#include <pqxx/pqxx>
|
||||
#include <string>
|
||||
#include <iostream>
|
||||
#include <libpq-fe.h>
|
||||
#include <vector>
|
||||
|
||||
#ifndef DATABASE_H
|
||||
#define DATABASE_H
|
||||
@@ -7,12 +10,14 @@ class Database
|
||||
{
|
||||
private:
|
||||
|
||||
pqxx::connection *dbconn;
|
||||
PGconn *dbconn;
|
||||
|
||||
public:
|
||||
Database();
|
||||
|
||||
pqxx::result execute(std::string cmd);
|
||||
void execute(std::string cmd);
|
||||
|
||||
PGresult* fetch(std::string cmd);
|
||||
|
||||
void disconnect();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user