Received: from druid.net (root@druid.net [216.126.72.98]) by hub.org (8.10.1/8.10.1) with ESMTP id e73DxvG34310 for ; Thu, 3 Aug 2000 09:59:57 -0400 (EDT) Received: from localhost (1435 bytes) by druid.net via sendmail with P:stdio/R:bind_hosts/T:inet_zone_bind_smtp (sender: ) (ident using unix) id for ; Thu, 3 Aug 2000 09:59:47 -0400 (EDT) (Smail-3.2.0.109 1999-Oct-27 #3 built 2000-Jun-28) Message-Id: From: darcy@druid.net (D'Arcy J.M. Cain) Subject: Re: Python + PostgreSQL In-Reply-To: "from Karl Thomas Diedrich at Aug 2, 2000 02:48:51 pm" To: Karl Thomas Diedrich Date: Thu, 3 Aug 2000 09:59:47 -0400 (EDT) CC: Antonio Navarro Navarro , pgsql-interfaces@hub.org Reply-To: pgsql-interfaces@hub.org X-Mailer: ELM [version 2.4ME+ PL78 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Archive-Number: 200008/36 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 | 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.