Re: Python + PostgreSQL - Mailing list pgsql-interfaces

From darcy@druid.net (D'Arcy J.M. Cain)
Subject Re: Python + PostgreSQL
Date
Msg-id m13KfgG-000AXvC@druid.net
Whole thread Raw
In response to Re: Python + PostgreSQL  (Antonio Navarro Navarro <hostmaster@bemarnet.es>)
List pgsql-interfaces
Thus spake Antonio Navarro Navarro
> >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") ?
  connect(dbname, host, port, opt, tty, user, passwd)

Set any unused parameters to None.

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

In the README that comes with the distribution.

-- 
D'Arcy J.M. Cain <darcy@{druid|vex}.net>   |  Democracy is three wolves
http://www.druid.net/darcy/                |  and a sheep voting on
+1 416 425 1212     (DoD#0082)    (eNTP)   |  what's for dinner.


pgsql-interfaces by date:

Previous
From: "David Lloyd-Jones"
Date:
Subject: Re: Python + PostgreSQL
Next
From: Bob Kline
Date:
Subject: Re: Python + PostgreSQL