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