Skip site navigation (1) Skip section navigation (2)

Re: Python + PostgreSQL

From: Karl Thomas Diedrich <died9501(at)uidaho(dot)edu>
To: Antonio Navarro Navarro <hostmaster(at)bemarnet(dot)es>
Cc: pgsql-interfaces(at)hub(dot)org
Subject: Re: Python + PostgreSQL
Date: 2000-08-02 21:48:51
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-interfaces
I used the Postgresql python package to write a program. I couldn't find
any documentation either. Examples come in the RedHat package.

I used qit like this:
from pg import DB
cnx = DB("database-name")
cnx.query("""CREATE TABLE ...""")

You can see the full application at Thqe
parts in the the file DEODAS/deodas/src/ under CVS web. 

Karl Diedrich 

On Wed, 2 Aug 2000, Antonio Navarro Navarro wrote:

> Hi All !
> 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)
> Regards,
> Antonio Navarro Navarro
> BemarNet Management
> hostmaster(at)bemarnet(dot)es
> Tlf. +34-96-1656644
> Fax. +34-96-1656514

In response to


pgsql-interfaces by date

Next:From: tomasDate: 2000-08-03 05:08:18
Subject: Re: [OT] init.d [was: Re: And Furthermore. Was: PSQL Working, but PGAccess Not Connecting.]
Previous:From: Chris RyanDate: 2000-08-02 21:03:26
Subject: PgSql ODBC + Coldfusion + Solaris

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group