From: darcy@druid.net
To: Karl Thomas Diedrich <died9501@uidaho.edu>
Cc: Antonio Navarro Navarro <hostmaster@bemarnet.es>
Cc: pgsql-interfaces@hub.org
Subject: Re: Python + PostgreSQL
Date: Thu, 3 Aug 2000 09:59:47 -0400 (EDT)
Message-ID: <m13KLXH-000AX9C@druid.net> (raw)
In-Reply-To: <Pine.GHP.4.21.0008021440410.10797-100000@raptor.csrv.uidaho.edu>
Thus spake Karl Thomas Diedrich
> I used the Postgresql python package to write a program. I couldn't find
> any documentation either. Examples come in the RedHat package.
Look at the actual distribution either in the PostgreSQL tree or download
the package from http://www.druid.net/pygresql/ and look at the README file.
> I used qit like this:
> from pg import DB
> cnx = DB("database-name")
> cnx.query("""CREATE TABLE ...""")
The reccommended way is now;
import pg
cnx = pg.DB("database-name")
The reason for this is to make pg.error and possibly other things available.
--
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.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: darcy@druid.net, died9501@uidaho.edu, hostmaster@bemarnet.es, pgsql-interfaces@hub.org
Subject: Re: Python + PostgreSQL
In-Reply-To: <m13KLXH-000AX9C@druid.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox