Thread: libpq++ PgDatabase and PgConnection

libpq++ PgDatabase and PgConnection

From
"Lucky"
Date:
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.
 

Re: libpq++ PgDatabase and PgConnection

From
"Tim Barnard"
Date:
Just pass the parameters separated with whitespace. Example:
 
PgDatabase data("dbname=mydb user=foo password=bar");
 
Tim
 
----- Original Message -----
From: Lucky
Sent: Monday, June 11, 2001 9:13 PM
Subject: [GENERAL] 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.