Update folders

This commit is contained in:
AJ
2024-07-06 12:03:41 +02:00
parent b683d39a68
commit 5885f01dc0
22 changed files with 4394 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
#include "DBHandler.hpp"
#include <iostream>
//"host = localhost port = 5432 dbname = postgres user = postgres password = AlbertBridge1?"
DBHandler::DBHandler(std::string connStr) : connectionObject(connStr.c_str()) {
try {
if (connectionObject.is_open()) {
std::cout << "Databased connected" << std::endl;
}
else
std::cout << "Failed to connect to Databased" << std::endl;
}
catch (const std::exception& e) {
std::cerr << "Error: " << e.what() << std::endl;
}
};