/
sxfour
/
python_all_projects
Обзор
Документация
Войти
/
sxfour
/
python_all_projects
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
python_smb_automation/tgBotPostgreSQLCpp/postgresql.h
21 строка
560 B
Egor Levashov
Add files via upload
26 апр 2024, 22:45
Не верифицирован
26 апр 2024, 22:45
05056e9
Код
Авторство
О чём код?
#pragma once #include <string> #include <iostream> #include <pqxx/pqxx> auto postgreSQLCheck(const std::string passPhrase) { std::string connectionString = "host=81.31.245.131 port=5432 dbname=SMBHosts user=tgbot password=tgbot"; try { pqxx::connection connectionObject(connectionString.c_str()); pqxx::work worker(connectionObject); pqxx::result response = worker.exec(passPhrase); return response; } catch (const std::exception& e) { std::cerr << e.what() << std::endl; } }