Database header
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
#include <pqxx/pqxx>
|
||||
#include <pqxx/pqxx>
|
||||
|
||||
#ifndef DATABASE_H
|
||||
#define DATABASE_H
|
||||
@@ -7,9 +7,14 @@ class Database
|
||||
{
|
||||
private:
|
||||
|
||||
pqxx::connection *dbconn;
|
||||
|
||||
public:
|
||||
Database();
|
||||
|
||||
pqxx::result execute(std::string cmd);
|
||||
|
||||
void disconnect();
|
||||
};
|
||||
|
||||
#endif /* DATABASE_H */
|
||||
|
||||
Reference in New Issue
Block a user