Thread: libpq++ PgDatabase and PgConnection
Dear Sirs,
Thank you for your time and patience.
Quick problem using PgDatabase and Pg Connection.
I am using PgDatabase data("dbname=mydb");
I need to login to the db though with user name and password.
how do I do this using PgDatabase or PgConnection?
Thank you again
Lucky Phillips.
Just pass the parameters separated with whitespace. Example:
PgDatabase data("dbname=mydb user=foo password=bar");
Tim
----- Original Message -----From: LuckySent: Monday, June 11, 2001 9:13 PMSubject: [GENERAL] libpq++ PgDatabase and PgConnectionDear Sirs,Thank you for your time and patience.Quick problem using PgDatabase and Pg Connection.I am using PgDatabase data("dbname=mydb");I need to login to the db though with user name and password.how do I do this using PgDatabase or PgConnection?Thank you againLucky Phillips.