#48: Add methods returning interator of rows to the classic module
-----------------------+-------------------
  Reporter:  cito      |      Owner:  darcy
      Type:  defect    |     Status:  new
  Priority:  major     |  Milestone:  4.2
 Component:  DB API 2  |    Version:  4.0
Resolution:            |   Keywords:
-----------------------+-------------------
Description changed by cito:

Old description:

> Add new methods in the classic module, similar to getresult(),
> dictresult() and namedresult(), but returning iterators of rows instead
> of lists of rows.
>
> Or instead of adding new methods, add a boolean flag to the existing
> methods (see also #23).
>
> One problem here is that PQExec always reads the whole result into memory
> anyway, so using it would thwart the idea of saving memory by using an
> iterator. We probably need to create a cursor behind the scenes for this
> to make sense.

New description:

 Add new methods in the classic module, similar to getresult(),
 dictresult() and namedresult(), but returning iterators of rows instead of
 lists of rows.

 Or instead of adding new methods, add a boolean flag to the existing
 methods (see also #23).

 One problem here is that PQExec always reads the whole result into memory
 anyway, so using it would thwart the idea of saving memory by using an
 iterator. We probably need to create a cursor behind the scenes for this
 to make sense.

 See also #67 (add methods for returning scalar values) in this context.

--

--
Ticket URL: <http://trac.pygresql.org:8000/pgtracker/ticket/48#comment:1>
PyGreSQL <http://www.pygresql.org/>
PyGreSQL Tracker
_______________________________________________
PyGreSQL mailing list
[email protected]
https://mail.vex.net/mailman/listinfo.cgi/pygresql

Reply via email to