You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/src/api_manual/deprecations.rst
+28-37Lines changed: 28 additions & 37 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,6 +15,17 @@ python-oracledb. The relevant functionality may be removed in a future version
15
15
of python-oracledb. The cx_Oracle driver itself is obsolete and should not be
16
16
used for new development.
17
17
18
+
.. list-table-with-summary:: Deprecated in python-oracledb 3.4
19
+
:header-rows: 1
20
+
:class: wy-table-responsive
21
+
:summary: The first column, Name, displays the deprecated feature. The second column, Comments, includes information about the deprecation and the replacement to use, if applicable.
22
+
:name: _deprecations_3_4
23
+
24
+
* - Name
25
+
- Comments
26
+
* - The x86_64 macOS and 32-bit Windows platforms are deprecated. They will be desupported when the `cryptography <https://pypi.org/project/cryptography/>`__ package desupports them, see the `cryptography deprecation announcement <https://mail.python.org/archives/list/python-announce-list@python.org/thread/R4BZNC36MSFLKULA74KILLFY6GP3VCPA/>`__.
27
+
- Use arm64 macOS or 64-bit Windows instead.
28
+
18
29
.. list-table-with-summary:: Deprecated in python-oracledb 3.0
19
30
:header-rows: 1
20
31
:class: wy-table-responsive
@@ -24,8 +35,7 @@ used for new development.
24
35
* - Name
25
36
- Comments
26
37
* - Parameter ``pool`` of :meth:`oracledb.connect()` and :meth:`oracledb.connect_async()`
27
-
- Use :meth:`ConnectionPool.acquire()`, or make use of the
28
-
:ref:`connection pool cache <connpoolcache>` instead
38
+
- Use :meth:`ConnectionPool.acquire()`, or make use of the :ref:`connection pool cache <connpoolcache>` instead
29
39
30
40
.. list-table-with-summary:: Desupported in python-oracledb 2.0
31
41
:header-rows: 1
@@ -36,33 +46,21 @@ used for new development.
36
46
* - Name
37
47
- Comments
38
48
* - ``oracledb.__future__.old_json_col_as_obj``
39
-
- VARCHAR2 and LOB columns created with the ``IS JSON`` check constraint
40
-
are now always fetched as JSON. Use an :ref:`output type handler
41
-
<outputtypehandlers>` if the old behavior is required.
42
-
* - Parameters ``encoding`` and ``nencoding`` of :func:`oracledb.connect()`
43
-
and :func:`oracledb.create_pool()`, and the related attributes on the
44
-
objects created
45
-
- The driver encodings are always UTF-8. Remove uses of ``encoding`` and
46
-
``nencoding`` from your code.
47
-
* - Parameter ``threaded`` of :func:`oracledb.connect()` and
48
-
:func:`oracledb.create_pool()`
49
+
- VARCHAR2 and LOB columns created with the ``IS JSON`` check constraint are now always fetched as JSON. Use an :ref:`output type handler <outputtypehandlers>` if the old behavior is required.
50
+
* - Parameters ``encoding`` and ``nencoding`` of :func:`oracledb.connect()` and :func:`oracledb.create_pool()`, and the related attributes on the objects created
51
+
- The driver encodings are always UTF-8. Remove uses of ``encoding`` and ``nencoding`` from your code.
52
+
* - Parameter ``threaded`` of :func:`oracledb.connect()` and :func:`oracledb.create_pool()`
49
53
- Threading is always used. Remove uses of ``threaded`` from your code.
50
-
* - Parameter ``waitTimeout`` of :func:`oracledb.create_pool()` and
51
-
``oracledb.SessionPool()``
54
+
* - Parameter ``waitTimeout`` of :func:`oracledb.create_pool()` and ``oracledb.SessionPool()``
52
55
- Replace with parameter ``wait_timeout``
53
-
* - Parameter ``maxLifetimeSession`` of :func:`oracledb.create_pool()` and
54
-
``oracledb.SessionPool()``
56
+
* - Parameter ``maxLifetimeSession`` of :func:`oracledb.create_pool()` and ``oracledb.SessionPool()``
55
57
- Replace with parameter ``max_lifetime_session``
56
-
* - Parameter ``sessionCallback`` of :func:`oracledb.create_pool()` and
57
-
``oracledb.SessionPool()``
58
+
* - Parameter ``sessionCallback`` of :func:`oracledb.create_pool()` and ``oracledb.SessionPool()``
58
59
- Replace with parameter ``session_callback``
59
-
* - Parameter ``maxSessionsPerShard`` of :func:`oracledb.create_pool()` and
60
-
``oracledb.SessionPool()``
60
+
* - Parameter ``maxSessionsPerShard`` of :func:`oracledb.create_pool()` and ``oracledb.SessionPool()``
61
61
- Replace with parameter ``max_sessions_per_shard``
62
-
* - Attribute ``maxBytesPerCharacter`` of the :ref:`Connection object
63
-
<connobj>`
64
-
- The driver encodings are always UTF-8 so this attribute can be replaced by
65
-
the constant value 4
62
+
* - Attribute ``maxBytesPerCharacter`` of the :ref:`Connection object <connobj>`
63
+
- The driver encodings are always UTF-8 so this attribute can be replaced by the constant value 4
66
64
* - ``Connection.tnsentry``
67
65
- Replace with :attr:`Connection.dsn`
68
66
* - ``SessionPool.tnsentry``
@@ -76,16 +74,11 @@ used for new development.
76
74
77
75
* - Name
78
76
- Comments
79
-
* - Calling :meth:`Variable.setvalue()` with a string value when the
80
-
variable type is one of :data:`oracledb.DB_TYPE_BLOB`,
77
+
* - Calling :meth:`Variable.setvalue()` with a string value when the variable type is one of :data:`oracledb.DB_TYPE_BLOB`,
81
78
:data:`oracledb.DB_TYPE_CLOB` or :data:`oracledb.DB_TYPE_NCLOB`.
82
-
- Call :meth:`Connection.createlob()` with the value instead and pass the
83
-
result to :meth:`Variable.setvalue()`.
84
-
* - Setting an attribute of type :data:`oracledb.DB_TYPE_BLOB`,
85
-
:data:`oracledb.DB_TYPE_CLOB` or :data:`oracledb.DB_TYPE_NCLOB` on a
86
-
database object to a string value.
87
-
- Call :meth:`Connection.createlob()` with the value instead and set the
88
-
attribute with the result.
79
+
- Call :meth:`Connection.createlob()` with the value instead and pass the result to :meth:`Variable.setvalue()`.
80
+
* - Setting an attribute of type :data:`oracledb.DB_TYPE_BLOB`, :data:`oracledb.DB_TYPE_CLOB` or :data:`oracledb.DB_TYPE_NCLOB` on a database object to a string value.
81
+
- Call :meth:`Connection.createlob()` with the value instead and set the attribute with the result.
89
82
90
83
.. list-table-with-summary:: Deprecated in python-oracledb 1.4
0 commit comments