diff options
Diffstat (limited to 'include/postgresHandler.hpp')
| -rw-r--r-- | include/postgresHandler.hpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/include/postgresHandler.hpp b/include/postgresHandler.hpp index 2c3f6f4..444a50f 100644 --- a/include/postgresHandler.hpp +++ b/include/postgresHandler.hpp @@ -1,5 +1,5 @@ #pragma once -#include "hearthstoneAPIHandler.hpp" +#include "hearthstoneAPI.hpp" #include <pqxx/pqxx> #include <regex> @@ -10,8 +10,7 @@ * @param aQuery The SQL query * @return The result of the executed SQL query */ -const pqxx::result executeQuery(pqxx::work &aTransaction, - std::string_view aQuery); +const pqxx::result executeQuery(pqxx::work &aTransaction, std::string_view aQuery); /** * Get the type id of the value element in the "key": value regex match @@ -21,16 +20,13 @@ const pqxx::result executeQuery(pqxx::work &aTransaction, * @param kSregexIt the regex match for a "key": value card information * @return the type identifier of the value element */ -const unsigned int -getTypeIndexOfRegexIterator(const std::sregex_iterator &kSregexIt); +const unsigned int getTypeIndexOfRegexIterator(const std::sregex_iterator &kSregexIt); /** * Add a list of cards (TODO: Complete documentation and function) * * @param kCards * @param aTransaction */ -void addCardsToDatabase(HearthstoneAPIHandler &aAPIIntermediate, - pqxx::work &aTransaction, - const std::string &kURLOfCardsPage); +void addCardsToDatabase(HearthstoneAPI &aAPIIntermediate, pqxx::work &aTransaction, const std::string &kURLOfCardsPage); void refresh_cards_table(); |
