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
+35-5Lines changed: 35 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,13 +11,43 @@ if applicable. The most recent deprecations are listed first.
11
11
.. list-table-with-summary:: Desupported in python-oracledb 2.0
12
12
:header-rows: 1
13
13
:class: wy-table-responsive
14
-
:summary: The first column, Name, displays the deprecated or desupported API name. The second column, Comments, includes information about when the API was deprecated or desupported and what API to use, if applicable.
15
-
:name:_deprecations_2_0
14
+
:summary: The first column, Name, displays the desupported API name. The second column, Comments, includes information about when the API desupported and what API to use, if applicable.
15
+
:name:_desupported_2_0
16
16
17
17
* - Name
18
18
- Comments
19
19
* - ``oracledb.__future__.old_json_col_as_obj``
20
-
- This attribute is desupported and does not need to be set to fetch VARCHAR2 and LOB columns that contain JSON data.
20
+
- VARCHAR2 and LOB columns created with the ``IS JSON`` check constraint
21
+
are now always fetched as JSON. Use an :ref:`output type handler
22
+
<outputtypehandlers>` if the old behavior is required.
23
+
* - Parameters ``encoding`` and ``nencoding`` of :func:`oracledb.connect()`
24
+
and :func:`oracledb.create_pool()`, and the related attributes on the
25
+
objects created
26
+
- The driver encodings are always UTF-8. Remove uses of ``encoding`` and
27
+
``nencoding`` from your code.
28
+
* - Parameter ``threaded`` of :func:`oracledb.connect()` and
29
+
:func:`oracledb.create_pool()`
30
+
- Threading is always used. Remove uses of ``threaded`` from your code.
31
+
* - Parameter ``waitTimeout`` of :func:`oracledb.create_pool()` and
32
+
``oracledb.SessionPool()``
33
+
- Replace with parameter ``wait_timeout``
34
+
* - Parameter ``maxLifetimeSession`` of :func:`oracledb.create_pool()` and
35
+
``oracledb.SessionPool()``
36
+
- Replace with parameter ``max_lifetime_session``
37
+
* - Parameter ``sessionCallback`` of :func:`oracledb.create_pool()` and
38
+
``oracledb.SessionPool()``
39
+
- Replace with parameter ``session_callback``
40
+
* - Parameter ``maxSessionsPerShard`` of :func:`oracledb.create_pool()` and
41
+
``oracledb.SessionPool()``
42
+
- Replace with parameter ``max_sessions_per_shard``
43
+
* - Attribute ``maxBytesPerCharacter`` of the :ref:`connection object
44
+
<connobj>`
45
+
- The driver encodings are always UTF-8 so this attribute can be replaced by
46
+
the constant value 4
47
+
* - ``Connection.tnsentry``
48
+
- Replace with :attr:`Connection.dsn`
49
+
* - ``SessionPool.tnsentry``
50
+
- Replace with :attr:`ConnectionPool.dsn`
21
51
22
52
.. list-table-with-summary:: Deprecated in python-oracledb 1.4
23
53
:header-rows: 1
@@ -173,7 +203,7 @@ python-oracledb are listed below:
173
203
* - ``maxSessionsPerShard`` parameter to `cx_Oracle.SessionPool() <https://cx-oracle.readthedocs.io/en/latest/api_manual/module.html#cx_Oracle.SessionPool>`_
174
204
- Replace with parameter name ``max_sessions_per_shard``
175
205
* - ``SessionPool.tnsentry``
176
-
- Replace with `SessionPool.dsn<https://cx-oracle.readthedocs.io/en/latest/api_manual/session_pool.html#SessionPool.dsn>`_
206
+
- Replace with :attr:`ConnectionPool.dsn`
177
207
* - ``payloadType`` parameter to `Connection.queue() <https://cx-oracle.readthedocs.io/en/latest/api_manual/connection.html#Connection.queue>`_
178
208
- Replace with parameter name ``payload_type`` if using keyword parameters.
179
209
* - ``ipAddress`` parameter to `Connection.subscribe() <https://cx-oracle.readthedocs.io/en/latest/api_manual/connection.html#Connection.subscribe>`_
@@ -189,7 +219,7 @@ python-oracledb are listed below:
189
219
* - ``Connection.callTimeout``
190
220
- Replace with `Connection.call_timeout <https://cx-oracle.readthedocs.io/en/latest/api_manual/connection.html#Connection.call_timeout>`_
191
221
* - ``Connection.tnsentry``
192
-
- Replace with `Connection.dsn<https://cx-oracle.readthedocs.io/en/latest/api_manual/connection.html#Connection.dsn>`_
222
+
- Replace with :attr:`Connection.dsn`
193
223
* - `keywordParameters` parameter to `Cursor.callfunc() <https://cx-oracle.readthedocs.io/en/latest/api_manual/cursor.html#Cursor.callfunc>`_
194
224
- Replace with parameter name ``keyword_parameters``
195
225
* - ``keywordParameters`` parameter to `Cursor.callproc() <https://cx-oracle.readthedocs.io/en/latest/api_manual/cursor.html#Cursor.callproc>`_
0 commit comments