Re: [GENERAL] libq++ and security help - Mailing list pgsql-general

From Bruce Tong
Subject Re: [GENERAL] libq++ and security help
Date
Msg-id Pine.LNX.3.95.980616075826.6837N-100000@laxmi.ev.net
Whole thread Raw
In response to Re: [GENERAL] libq++ and security help  (Peter Mount <pgsqlgen@retep.org.uk>)
List pgsql-general
> I'm not sure about libq++, but for libpq, you can do this by using
> PQconnectdb(). The easiest way, is to look at the source to psql, which
> uses libpq itself.
>
> PGconn *db = PQconnectdb("host=myhost user=myuser password=mypassword port=myport");

Whoa, neat. I guess I'm going to have to start looking at the source. That
function isn't in the documentation for LIBPQ. Thanks for the pointer.


Bruce Tong
Systems Programmer
Electronic Vision / FITNE

mailto: zztong@laxmi.ev.net
http://www.ev.net/fitne


pgsql-general by date:

Previous
From: "Jose' Soares Da Silva"
Date:
Subject: Re: [HACKERS] pg_dump error
Next
From: The Hermit Hacker
Date:
Subject: By Popular Demand...