On Thu, Jul 06, 2017 at 02:23:37PM +0200, Christoph Zwerschke wrote:
> * The sourceObject is the low level object behind the DB API 2 cursor
> object, while the queryObject is the low level object behind the classic API
> query object. I would keep them separate, to avoid tight coupling between
> the modules. Can't we just add max_row and current_row to the queryObject
> instead?

I see this interface has been around since PyGreSQL 3.1 (c. 2000), but "source
objects" are not documented.

I'm referring to these:
|pg.DB('postgres').source()
|pg.connect('postgres').source()

Also, I noticed this behaves strangely:

>>> pg.DB('postgres').source()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
pg.OperationalError: Connection has been closed

Justin
_______________________________________________
PyGreSQL mailing list
PyGreSQL@Vex.Net
https://mail.vex.net/mailman/listinfo/pygresql

Reply via email to