More PyGreSQL questions

Harry Tanovich harryt at gte.net
Fri Oct 8 19:21:11 EDT 1999


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:

a) query results aren't strings but binary values that map directly to
python types
b) cursors are used to fetch just as many rows as you want from the
database

i.e. like on page 136 of the postgresql programmers' guide:

res = PQexec(conn, "DECLARE mycursor BINARY cursor for select * from
test1");
...
res = PQexec(conn, "FETCH ALL in mycursor");

And what about binary inserts?





More information about the Python-list mailing list