summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/hearthstoneAPIHandler.h2
-rw-r--r--include/postgresHandler.h9
2 files changed, 10 insertions, 1 deletions
diff --git a/include/hearthstoneAPIHandler.h b/include/hearthstoneAPIHandler.h
index c752f6e..2e0c933 100644
--- a/include/hearthstoneAPIHandler.h
+++ b/include/hearthstoneAPIHandler.h
@@ -13,7 +13,7 @@ class HearthstoneAPIHandler {
std::chrono::hours get_current_time();
std::string extract_string_with_regex(const std::string &t_str,
const std::string t_regex);
- void write_new_token_info_to_file(const std::string &file_path);
+ void write_new_token_info_to_file(const std::string &t_file_path);
void refresh_token_if_needed();
std::string get_valid_token();
std::string generate_request_header();
diff --git a/include/postgresHandler.h b/include/postgresHandler.h
new file mode 100644
index 0000000..1b83618
--- /dev/null
+++ b/include/postgresHandler.h
@@ -0,0 +1,9 @@
+#pragma once
+#include <pqxx/pqxx>
+
+const pqxx::result execute_query(pqxx::work &t_transaction,
+ std::string_view t_query);
+
+void display_query_result(const pqxx::result &t_r);
+
+void add_cards_to_database(std::string_view t_cards, pqxx::work &t_tx);