summaryrefslogtreecommitdiff
path: root/include/postgresHandler.h
diff options
context:
space:
mode:
authorAotrix <[email protected]>2025-03-18 19:21:57 +0100
committerAotrix <[email protected]>2025-03-18 19:21:57 +0100
commit332c0ffde6d60b7bac3cb14df31cbae3f27383a7 (patch)
tree80c22ed8f36be4399ca174c9d3ceac6da7cb2fab /include/postgresHandler.h
parent9c280e05547671aa346530c4c7c0ddbc4729348f (diff)
added postgres handler
Diffstat (limited to 'include/postgresHandler.h')
-rw-r--r--include/postgresHandler.h9
1 files changed, 9 insertions, 0 deletions
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);