diff options
author | armenqa <armenqa@yandex-team.com> | 2024-01-19 12:23:50 +0300 |
---|---|---|
committer | armenqa <armenqa@yandex-team.com> | 2024-01-19 13:10:03 +0300 |
commit | 2de0149d0151c514b22bca0760b95b26c9b0b578 (patch) | |
tree | 2bfed9f3bce7e643ddf048bb61ce3dc0a714bcc2 /contrib/python/pg8000/.dist-info/METADATA | |
parent | a8c06d218f12b2406fbce24d194885c5d7b68503 (diff) | |
download | ydb-2de0149d0151c514b22bca0760b95b26c9b0b578.tar.gz |
feat contrib: aiogram 3
Relates: https://st.yandex-team.ru/, https://st.yandex-team.ru/
Diffstat (limited to 'contrib/python/pg8000/.dist-info/METADATA')
-rw-r--r-- | contrib/python/pg8000/.dist-info/METADATA | 40 |
1 files changed, 33 insertions, 7 deletions
diff --git a/contrib/python/pg8000/.dist-info/METADATA b/contrib/python/pg8000/.dist-info/METADATA index 3511e11a2a..93aec222db 100644 --- a/contrib/python/pg8000/.dist-info/METADATA +++ b/contrib/python/pg8000/.dist-info/METADATA @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: pg8000 -Version: 1.30.3 +Version: 1.30.4 Summary: PostgreSQL interface library License: BSD 3-Clause License Project-URL: Homepage, https://github.com/tlocke/pg8000 @@ -39,7 +39,7 @@ pg8000 pg8000 is a pure-`Python <https://www.python.org/>`_ `PostgreSQL <http://www.postgresql.org/>`_ driver that complies with `DB-API 2.0 <http://www.python.org/dev/peps/pep-0249/>`_. It is tested on Python -versions 3.8+, on CPython and PyPy, and PostgreSQL versions 11+. pg8000's name comes +versions 3.8+, on CPython and PyPy, and PostgreSQL versions 12+. pg8000's name comes from the belief that it is probably about the 8000th PostgreSQL interface for Python. pg8000 is distributed under the BSD 3-clause license. @@ -303,9 +303,7 @@ PostgreSQL `notices <https://www.postgresql.org/docs/current/static/plpgsql-errors-and-messages.html>`_ are stored in a deque called ``Connection.notices`` and added using the ``append()`` method. Similarly there are ``Connection.notifications`` for `notifications -<https://www.postgresql.org/docs/current/static/sql-notify.html>`_ and -``Connection.parameter_statuses`` for changes to the server configuration. Here's an -example: +<https://www.postgresql.org/docs/current/static/sql-notify.html>`_. Here's an example: >>> import pg8000.native >>> @@ -321,6 +319,26 @@ example: >>> con.close() +Parameter Statuses +`````````````````` + +`Certain parameter values are reported by the server automatically at connection startup or whenever +their values change +<https://www.postgresql.org/docs/current/libpq-status.html#LIBPQ-PQPARAMETERSTATUS>`_ and pg8000 +stores the latest values in a dict called ``Connection.parameter_statuses``. Here's an example where +we set the ``aplication_name`` parameter and then read it from the ``parameter_statuses``: + +>>> import pg8000.native +>>> +>>> con = pg8000.native.Connection( +... "postgres", password="cpsnow", application_name='AGI') +>>> +>>> con.parameter_statuses['application_name'] +'AGI' +>>> +>>> con.close() + + LIMIT ALL ````````` @@ -667,7 +685,7 @@ the server: >>> >>> con.run("SELECT :v IS NULL", v=None) Traceback (most recent call last): -pg8000.exceptions.DatabaseError: {'S': 'ERROR', 'V': 'ERROR', 'C': '42P18', 'M': 'could not determine data type of parameter $1', 'F': 'postgres.c', 'L': '...', 'R': 'exec_parse_message'} +pg8000.exceptions.DatabaseError: {'S': 'ERROR', 'V': 'ERROR', 'C': '42P18', 'M': 'could not determine data type of parameter $1', 'F': 'postgres.c', 'L': '...', 'R': '...'} >>> >>> con.close() @@ -889,7 +907,7 @@ the ``replication`` keyword when creating a connection: ... 'postgres', password="cpsnow", replication="database") >>> >>> con.run("IDENTIFY_SYSTEM") -[['...', 1, '0/...', 'postgres']] +[['...', 1, '.../...', 'postgres']] >>> >>> con.close() @@ -2240,6 +2258,14 @@ Run ``tox`` to make sure all tests pass, then update the release notes, then do: Release Notes ------------- +Version 1.30.4, 2024-01-03 +`````````````````````````` + +- Add support for more range and multirange types. + +- Make the ``Connection.parameter_statuses`` property a ``dict`` rather than a ``dequeue``. + + Version 1.30.3, 2023-10-31 `````````````````````````` |