-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdatabaseService.h
More file actions
31 lines (20 loc) · 828 Bytes
/
databaseService.h
File metadata and controls
31 lines (20 loc) · 828 Bytes
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
#ifndef POSTGESSTEST_DATABASESERVICE_H
#define POSTGESSTEST_DATABASESERVICE_H
#include <pqxx/pqxx>
#include <quill/Logger.h>
#include <quill/detail/LogMacros.h>
class databaseService {
public:
pqxx::work getTransaction();
void updateArticles(std::string& query,std::string&id,quill::Logger *pLogger);
void journalISSN(int &id, std::string &issn, quill::Logger *pLogger);
void articleIsmissing(std::string&id,quill::Logger *pLogger);
std::vector<std::string> get_article_links(int id,quill::Logger *pLogger);
std::vector<int> get_journal_links2(quill::Logger *pLogger);
~databaseService();
private:
pqxx::connection conn=pqxx::connection(
"dbname=sciencedirect user=scuser password=rar4Muga \
hostaddr=127.0.0.1 port=5432");
};
#endif //POSTGESSTEST_DATABASESERVICE_H