.. automethod:: fetchall
.. automethod:: nextset
.. automethod:: scroll
- .. autoattribute:: pgresult
+ .. attribute:: pgresult
+ :type: Optional[psycopg3.pq.PGresult]
+
+ The result returned by the last query and currently exposed by the
+ cursor, if available, else `!None`.
.. rubric:: Information about the data
def _reset(self) -> None:
self._results: List["PGresult"] = []
self.pgresult: Optional["PGresult"] = None
- """The `~psycopg3.pq.PGresult` exposed by the cursor."""
self._pos = 0
self._iresult = 0
self._rowcount = -1