From: George Cutrell <George.Cutrell@mci.com>
To: "'guido@cnri.reston.va.us'" <guido@CNRI.Reston.VA.US>
Cc: "'David Moffett'" <dmoffett@doublediamond.com>
Subject: RE: sybase module
Date: Mon, 19 Aug 1996 09:45:21 -0400

Here's a quick cut at an Informix library for Python.  It is modeled
after the Sybase implementation and works as follows:

db = informix.new('userid', 'password', 'data source')
results = db.sql("select * from my_table;")
for row in results:
	keys = row.keys()
	for key in keys:
		print row[ key ]

If your SQL doesn't return results then results will be empty.  Your
SQL statement can be anything including a stored procedure call; for
example:

results = db.sql("execute procedure my_proc('parm1', 'parm2');")

Keep in mind this is without much debugging and was quickly
implemented to get the job done.  So you'll need to decide if it's
worthy of publishing.  Just from my first inquery a few weeks ago in
the news group as to whether an Informix module existed, I've received
a few emails asking if I've found one and thought that publishing it
might work out the kinks.  My needs for it have been pretty simple so
it may not be all to everyone.

George Cutrell
george.cutrell@mci.com
=======================
