Skip to content

Commit 6b26e02

Browse files
author
James William Pye
committed
Document fileno().
1 parent 8ad41ed commit 6b26e02

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

postgresql/documentation/driver.txt

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -378,15 +378,20 @@ the connection is made:
378378
The result of ``SELECT version()``.
379379

380380
``db.version_info``
381-
A ``sys.version_info`` form of the ``server_version`` setting. eg. ``(8, 1, 2,
382-
'final', 0)``.
381+
A ``sys.version_info`` form of the ``server_version`` setting. eg.
382+
``(8, 1, 2, 'final', 0)``.
383383

384384
``db.security``
385385
`None` if no security. ``'ssl'`` if SSL is enabled.
386386

387387
``db.backend_id``
388388
The process-id of the backend process.
389389

390+
``db.fileno()``
391+
Method to get the file descriptor number of the connection's socket. This
392+
attribute will not exist if the socket object does not have a ``fileno``
393+
attribute. Under normal circumstances, it will be available.
394+
390395
``db.backend_start``
391396
When backend was started. ``datetime.datetime`` instance.
392397

0 commit comments

Comments
 (0)