Re: [GENERAL] libq++ and security help
Bruce Tong <zztong@laxmi.ev.net>
From: Bruce Tong <zztong@laxmi.ev.net>
To: Peter Mount <pgsqlgen@retep.org.uk>
Cc: Monica Rogati <mrogati@unm.edu>, pgsql-general@postgreSQL.org
Date: 1998-06-16T11:59:31Z
Lists: 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