From 332c0ffde6d60b7bac3cb14df31cbae3f27383a7 Mon Sep 17 00:00:00 2001 From: Aotrix Date: Tue, 18 Mar 2025 19:21:57 +0100 Subject: added postgres handler --- include/postgresHandler.h | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 include/postgresHandler.h (limited to 'include/postgresHandler.h') 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 + +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); -- cgit v1.2.3