blob: a841188ceb0b335052e9704bc78e56f01d6e6bbb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
#ifndef __PRACRO_DATABASE_H__
#define __PRACRO_DATABASE_H__
#include <pqxx/pqxx>
#include <string>
#include "transaction.h"
class Database {
public:
Database(std::string hostname = "localhost",
std::string user = "pracro",
std::string password = "pracro");
~Database();
int post(std::string &user, std::string &cpr, std::string &time, Commit &commit);
private:
pqxx::connection c;
};
#endif
|