> 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