PQconnectdb question

From: Christian Valverde <valval(at)porta(dot)net>
To: pgsql-interfaces(at)postgresql(dot)org
Subject: PQconnectdb question
Date: 2003-09-13 18:12:16
Message-ID: 200309131312.16427.valval@porta.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

could somebody show me a little example on this function
i have this parameters
PQconn connection;
char *user;
char *passw;
char *db;
char *server;
char *port;

user="chrisvv";
passw="mypass";
db="sales";
server="192.168.1.1";
port="5432";
is it right to do as follows
connection=PQconnectdb(user,passw,db,server,port);
.... how is the correct form of making a conection with user and passwd
parameters?

Browse pgsql-interfaces by date

  From Date Subject
Next Message Alberto Cabello Sanchez 2003-09-15 07:11:25 ColumnName and ColumnNumber in libpq (C interface)
Previous Message Michael Vodep 2003-09-13 13:52:57 Re: insert/export BLOB: C libpq