Re: Python + PostgreSQL - Mailing list pgsql-interfaces

From Antonio Navarro Navarro
Subject Re: Python + PostgreSQL
Date
Msg-id 4.1.20000804085946.00ca5f00@pop3.bemarnet.es
Whole thread Raw
In response to Re: Python + PostgreSQL  (darcy@druid.net (D'Arcy J.M. Cain))
Responses Re: Python + PostgreSQL
List pgsql-interfaces
At 10.05 3/8/00 -0400, darcy@druid.net (D'Arcy J.M. Cain) wrote:

>Thus spake Antonio Navarro Navarro
>> I have installed postgresql-python-7.0.2-2.i386.rpm in a RedHat 6.2 box.
>> Where can I find documentation for this module ? I'm trying to connect to a
>> server but the python says 'no password supplied'
>> 
>> import pg
>> 
>> dg = pg.connect("template1", "localhost", 5432)
>
>If the server requires a password then you need to supply one here.  If
>you don't need a password (i.e. "psql template1" works) then try this.

Hi again !

How must I add the password to the call , maybe
dg = pg.connect("template1", "10.0.0.1", 5432,"username", "password") ?

and where could I find documentation for the different functions supplied
in the package ?

Regards,

Antonio Navarro Navarro
BemarNet Management
http://www.bemarnet.es
hostmaster@bemarnet.es
Tlf. +34-96-1656644
Fax. +34-96-1656514


pgsql-interfaces by date:

Previous
From: Peter Mount
Date:
Subject: RE: JDBC driver writes binary data ONLY as Large Obj ect
Next
From: "David Lloyd-Jones"
Date:
Subject: Re: Python + PostgreSQL