mirror of
https://github.com/psycopg/psycopg2.git
synced 2024-11-22 17:06:33 +03:00
Small tweaks to connection.host docs
This commit is contained in:
parent
1c553bb703
commit
382eeccab8
2
NEWS
2
NEWS
|
@ -7,13 +7,13 @@ What's new in psycopg 2.8
|
||||||
New features:
|
New features:
|
||||||
|
|
||||||
- Added `~psycopg2.extensions.encrypt_password()` function (:ticket:`#576`).
|
- Added `~psycopg2.extensions.encrypt_password()` function (:ticket:`#576`).
|
||||||
|
- Added `connection.host` property (:ticket:`#726`).
|
||||||
- `~psycopg2.sql.Identifier` can represent qualified names in SQL composition
|
- `~psycopg2.sql.Identifier` can represent qualified names in SQL composition
|
||||||
(:ticket:`#732`).
|
(:ticket:`#732`).
|
||||||
- `!str()` on `~psycopg2.extras.Range` produces a human-readable representation
|
- `!str()` on `~psycopg2.extras.Range` produces a human-readable representation
|
||||||
(:ticket:`#773`).
|
(:ticket:`#773`).
|
||||||
- `~psycopg2.extras.DictCursor` and `~psycopg2.extras.RealDictCursor` rows
|
- `~psycopg2.extras.DictCursor` and `~psycopg2.extras.RealDictCursor` rows
|
||||||
maintain columns order (:ticket:`#177`).
|
maintain columns order (:ticket:`#177`).
|
||||||
- Added `connection.host` property (:ticket:`#726`).
|
|
||||||
|
|
||||||
Other changes:
|
Other changes:
|
||||||
|
|
||||||
|
|
|
@ -604,11 +604,11 @@ The ``connection`` class
|
||||||
|
|
||||||
.. attribute:: host
|
.. attribute:: host
|
||||||
|
|
||||||
Returns the server host name of the active connection.
|
The server host name of the active connection.
|
||||||
|
|
||||||
This can be a host name, an IP address, or a directory path if the
|
This can be a host name, an IP address, or a directory path if the
|
||||||
connection is via Unix socket. (The path case can be distinguished
|
connection is via Unix socket. (The path case can be distinguished
|
||||||
because it will always be an absolute path, beginning with /.)
|
because it will always be an absolute path, beginning with ``/``.)
|
||||||
|
|
||||||
.. seealso:: libpq docs for `PQhost()`__ for details.
|
.. seealso:: libpq docs for `PQhost()`__ for details.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user