#include "hearthstoneAPIHandler.h" #include "postgresHandler.h" #include #include int main() { HearthstoneAPIHandler hs_handler; pqxx::connection cx{ "postgresql://aotrix@localhost:5432/hearthstonegameinfo"}; pqxx::work tx{cx}; const unsigned int card_id = 217; std::string card = hs_handler.get_cards( std::format("{}?locale=fr_FR&gameMode=constructed", card_id)); std::cout << card << std::endl; add_cards_to_database(card, tx); tx.commit(); return 0; }