Commit 54cf61ae authored by Victor LECOMTE's avatar Victor LECOMTE

Etablir une connexion au serveur postgresql en cpp Fixes #1

parent 172f18ba
......@@ -2,7 +2,7 @@
#include <libpq-fe.h>
int main()
{
PGconn *connexion;
PGconn *connexion;
connexion = PQconnectdb("host=postgresql.bts-malraux72.net port=5432 dbname=v.lecomte connect_timeout=10");
std::cout << "connexion : " << PQstatus(connexion) << std::endl;
return 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment