diff options
author | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2021-06-14 23:05:48 +0100 |
---|---|---|
committer | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2021-06-14 23:05:48 +0100 |
commit | 2eac70786e7034888e43a316f05a39e6063253b6 (patch) | |
tree | 8454edf624c4e6b443df4c664435220b969f43b3 /doc/src | |
parent | 476a969bd83d94ea80ebce81a6fbb6abc3b9029f (diff) | |
download | psycopg2-2eac70786e7034888e43a316f05a39e6063253b6.tar.gz |
Drop support for mx.DateTime objects
They are Python 2 only.
Diffstat (limited to 'doc/src')
-rw-r--r-- | doc/src/conf.py | 2 | ||||
-rw-r--r-- | doc/src/extensions.rst | 21 | ||||
-rw-r--r-- | doc/src/install.rst | 1 | ||||
-rw-r--r-- | doc/src/usage.rst | 4 |
4 files changed, 1 insertions, 27 deletions
diff --git a/doc/src/conf.py b/doc/src/conf.py index 94f154e..d565c97 100644 --- a/doc/src/conf.py +++ b/doc/src/conf.py @@ -128,8 +128,6 @@ rst_epilog = """ .. _transaction isolation level: https://www.postgresql.org/docs/current/static/transaction-iso.html -.. _mx.DateTime: https://www.egenix.com/products/python/mxBase/mxDateTime/ - .. |MVCC| replace:: :abbr:`MVCC (Multiversion concurrency control)` """ diff --git a/doc/src/extensions.rst b/doc/src/extensions.rst index d8c07a4..763910d 100644 --- a/doc/src/extensions.rst +++ b/doc/src/extensions.rst @@ -453,13 +453,6 @@ deal with Python objects adaptation: Specialized adapters for Python datetime objects. -.. class:: DateFromMx - TimeFromMx - TimestampFromMx - IntervalFromMx - - Specialized adapters for `mx.DateTime`_ objects. - .. data:: adapters Dictionary of the currently registered object adapters. Use @@ -1004,20 +997,6 @@ from the database. See :ref:`unicode-handling` for details. Typecasters to convert time-related data types to Python `!datetime` objects. -.. data:: MXDATE - MXDATETIME - MXDATETIMETZ - MXINTERVAL - MXTIME - MXDATEARRAY - MXDATETIMEARRAY - MXDATETIMETZARRAY - MXINTERVALARRAY - MXTIMEARRAY - - Typecasters to convert time-related data types to `mx.DateTime`_ objects. - Only available if Psycopg was compiled with `!mx` support. - .. versionchanged:: 2.2 previously the `DECIMAL` typecaster and the specific time-related typecasters (`!PY*` and `!MX*`) were not exposed by the `extensions` diff --git a/doc/src/install.rst b/doc/src/install.rst index c771c9b..2eb66c8 100644 --- a/doc/src/install.rst +++ b/doc/src/install.rst @@ -230,7 +230,6 @@ If you have less standard requirements such as: - creating a :ref:`debug build <debug-build>`, - using :program:`pg_config` not in the :envvar:`PATH`, -- supporting ``mx.DateTime``, then take a look at the ``setup.cfg`` file. diff --git a/doc/src/usage.rst b/doc/src/usage.rst index 335e750..b4ffc85 100644 --- a/doc/src/usage.rst +++ b/doc/src/usage.rst @@ -540,7 +540,6 @@ or `!memoryview` (in Python 3). single: Date objects; Adaptation single: Time objects; Adaptation single: Interval objects; Adaptation - single: mx.DateTime; Adaptation .. _adapt-date: @@ -550,8 +549,7 @@ Date/Time objects adaptation Python builtin `~datetime.datetime`, `~datetime.date`, `~datetime.time`, `~datetime.timedelta` are converted into PostgreSQL's :sql:`timestamp[tz]`, :sql:`date`, :sql:`time[tz]`, :sql:`interval` data types. -Time zones are supported too. The Egenix `mx.DateTime`_ objects are adapted -the same way:: +Time zones are supported too. >>> dt = datetime.datetime.now() >>> dt |