More PyGreSQL questions

D'Arcy J.M. Cain darcy at vex.net
Sat Oct 9 06:44:19 EDT 1999


Harry Tanovich <harryt at gte.net> wrote:
> I just skimmed over the source AND I'm pretty unfamiliar with
> postgresql, but how hard would it be to re-do PyGreSQL so that:

The next version of PyGreSQL (with DB-API 2.0) is going to start being
worked on.  You should join the mailing list if you have suggestions
on changes.

> a) query results aren't strings but binary values that map directly to
> python types

Not sure what you mean by this.  It currently does check the type and
only falls back to string if there is no good Python object type to
convert to.  It converts to integers and floats as necessary.

> b) cursors are used to fetch just as many rows as you want from the
> database

I believe this will be required for DB-API anyway.

-- 
D'Arcy J.M. Cain <darcy at caingang.com>      |  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.




More information about the Python-list mailing list