#include "hearthstoneAPIHandler.h" #include "postgresHandler.h" #include #include int main() { HearthstoneAPIHandler hs_handler; // TODO: use a parser on get_cards returned value std::cout << hs_handler.get_cards("678?locale=fr_FR") << std::endl; pqxx::connection cx{ "postgresql://aotrix@localhost:5432/hearthstonegameinfo"}; pqxx::work tx{cx}; display_query_result(execute_query(tx, "SELECT * FROM cards")); // TODO: for test purposes // use get_cards output instead? add_cards_to_database("{\"name\":3}", tx); return 0; }