Return the file descriptor of the connection. This function allows to use the connection as file-like object in functions waiting for readiness, such as the ones defined in the `selectors` module.
(self)
| 285 | return self |
| 286 | |
| 287 | def fileno(self) -> int: |
| 288 | """Return the file descriptor of the connection. |
| 289 | |
| 290 | This function allows to use the connection as file-like object in |
| 291 | functions waiting for readiness, such as the ones defined in the |
| 292 | `selectors` module. |
| 293 | """ |
| 294 | return self.pgconn.socket |
| 295 | |
| 296 | def cancel(self) -> None: |
| 297 | """Cancel the current operation on the connection.""" |
no outgoing calls