.. rubric:: Checking and configuring the connection state
+ .. autoattribute:: pgconn
+
+ The `~pq.PGconn` libpq connection wrapper underlying the `!Connection`.
+
+ It can be used to send low level commands to PostgreSQL and access to
+ features not currently wrapped by Psycopg.
+
+ .. autoattribute:: info
+
.. autoattribute:: client_encoding
The property is writable for sync connections, read-only for async
.. __: https://www.postgresql.org/docs/current/multibyte.html
- .. autoattribute:: info
-
- .. automethod:: fileno
-
.. autoattribute:: prepare_threshold
See :ref:`prepared-statements` for details.
.. automethod:: remove_notice_handler
+ .. automethod:: fileno
+
The `!AsyncConnection` class
----------------------------
.. autoattribute:: rowcount
.. autoattribute:: rownumber
+ .. attribute:: pgresult
+
+ The `~pq.PGresult` object obtained by the last query.
+
+ It can be used to obtain low level info about the last query result
+ and to access to features not currently wrapped by Psycopg.
+
.. attribute:: _query
An helper object used to convert queries and parameters before sending
TransactionStatus = pq.TransactionStatus
def __init__(self, pgconn: "PGconn"):
- self.pgconn = pgconn # TODO: document this
+ self.pgconn = pgconn
self._autocommit = False
self._adapters = adapt.AdaptersMap(postgres.adapters)
self._notice_handlers: List[NoticeHandler] = []