Skip to content

Commit ddac90b

Browse files
Documentation improvements.
1 parent fdbecac commit ddac90b

File tree

7 files changed

+29
-21
lines changed

7 files changed

+29
-21
lines changed

doc/src/api_manual/aq.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ Message Properties
340340
:data:`~oracledb.MSG_READY`, :data:`~oracledb.MSG_PROCESSED` or
341341
:data:`~oracledb.MSG_EXPIRED`.
342342

343-
.. attribute:: Messageproperties.recipient
343+
.. attribute:: MessageProperties.recipients
344344

345345
This read-write attribute specifies a list of recipient names that can be
346346
associated with a message at the time of enqueuing the message. This allows a

doc/src/api_manual/connect_param.rst

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -279,14 +279,17 @@ ConnectParams Attributes
279279

280280
.. attribute:: ConnectParams.ssl_context
281281

282-
This read-only attribute is an SSLContext object which is used for
283-
connecting to the database using TLS. This SSL context will be modified to
284-
include the private key or any certificates found in a separately supplied
285-
wallet. This parameter should only be specified if the default SSLContext
286-
object cannot be used.
282+
This read-only attribute is an `SSLContext object
283+
<https://docs.python.org/3/library/ssl.html#ssl-contexts>`__ which is used
284+
for connecting to the database using TLS. This SSL context will be modified
285+
to include the private key or any certificates found in a separately
286+
supplied wallet. This parameter should only be specified if the default
287+
SSLContext object cannot be used.
287288

288289
This attribute is only supported in the python-oracledb Thin mode.
289290

291+
.. versionadded:: 2.0.0
292+
290293
.. attribute:: ConnectParams.ssl_server_cert_dn
291294

292295
This read-only attribute is a string that returns the distinguished name

doc/src/api_manual/connection.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -827,6 +827,8 @@ Connection Attributes
827827
This read-only attribute returns the name of the user which was used as a
828828
proxy when creating the connection to the database.
829829

830+
.. versionadded:: 2.0.0
831+
830832
.. note::
831833

832834
This attribute is an extension to the DB API definition.

doc/src/api_manual/module.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2352,6 +2352,8 @@ when binding data.
23522352
Describes columns, attributes or array elements in a database that are of
23532353
type SYS.XMLTYPE.
23542354

2355+
.. versionadded:: 2.0.0
2356+
23552357

23562358
.. _dbtypesynonyms:
23572359

doc/src/release_notes.rst

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,15 @@ Thin Mode Changes
1515

1616
#) Fixed bug in detecting the current time zone
1717
(`issue 257 <https://github.com/oracle/python-oracledb/issues/257>`__).
18-
#) Added parameter :data:`ConnectParams.ssl_context`
18+
#) Added connection establishment parameter :data:`ConnectParams.ssl_context`
1919
(`issue 259 <https://github.com/oracle/python-oracledb/issues/259>`__).
2020
#) Fixed bug in handling database response in certain unusual circumstances.
2121
#) Fixed bug in handling exceptions raised during connection establishment.
2222
#) Fixed bug in identifying bind variables in SQL statements containing
2323
multiple line comments with multiple asterisks before the closing slash.
24+
#) Added support for the ``FAILOVER`` clause in full connect descriptors.
2425
#) A more meaningful error is raised when the wrong type of data is passed to
25-
lob.write().
26+
:meth:`LOB.write()`.
2627
#) Internal changes to improve handling of the network protocol between
2728
python-oracledb and Oracle Database.
2829
#) Internal changes to improve handling of multiple address and description
@@ -55,15 +56,15 @@ Common Changes
5556
:data:`FetchInfo.type_code` for data of this type was
5657
:data:`~oracledb.DB_TYPE_LONG` in Thick mode and
5758
:data:`~oracledb.DB_TYPE_OBJECT` in Thin mode.
58-
#) Attribute and element values of DbObject instances that are numbers are now
59-
returned as integers if the precision and scale allow for it -- in the same
60-
way that numbers are fetched from the database
59+
#) Attribute and element values of :ref:`Oracle Object <dbobject>`
60+
instances that are numbers are now returned as integers if the precision
61+
and scale allow for it -- in the same way that numbers are fetched from the
62+
database
6163
(`issue 99 <https://github.com/oracle/python-oracledb/issues/99>`__).
62-
#) Added support for parsing the ``FAILOVER`` clause in full connect
63-
descriptors.
6464
#) Fixed bug with getting unknown attributes from DbObject instances.
65-
#) Errors that have entries in the troubleshooting documentation now have
66-
links to that documentation included in the message text.
65+
#) Errors that have entries in the
66+
:ref:`troubleshooting documentation <troubleshooting>` now have links to
67+
that documentation included in the message text.
6768
#) The attribute ``oracledb.__future__.old_json_col_as_obj`` no longer needs
6869
to be set in order to fetch JSON data found in VARCHAR2 and LOB columns in
6970
the same way that JSON columns (which requires Oracle Database 21c or

doc/src/user_guide/appendix_a.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -521,9 +521,9 @@ values.
521521
- Not supported in python-oracledb Thin mode
522522
- n/a
523523
* - XMLType
524-
- n/a
525-
- Not supported in python-oracledb. Use ``xmltype.getclobval()`` to fetch.
526-
- n/a
524+
- DB_TYPE_XMLTYPE
525+
- Yes. May need to use ``xmltype.getclobval()`` to fetch in python-oracledb Thick mode.
526+
- bytes, str
527527
* - User-defined types (object type, VARRAY, records, collections, SDO_*types)
528528
- DB_TYPE_OBJECT
529529
- Yes

doc/src/user_guide/troubleshooting.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ DPI Error Messages
154154

155155
The error messages with prefix ``DPI`` are generated by the
156156
`ODPI-C <https://oracle.github.io/odpi/>`_ code which is used by the
157-
python-oraclebd Thick mode.
157+
python-oracledb Thick mode.
158158

159159
DPI-1047
160160
++++++++
@@ -202,8 +202,8 @@ Client library could not be loaded.
202202
- On Windows:
203203

204204
- If you have a full database installation, ensure that this database is the
205-
`currently configured database <https://www.oracle.com/pls/topic/lookup?
206-
ctx=dblatest&id=GUID-33D575DD-47FF-42B1-A82F-049D3F2A8791>`__.
205+
`currently configured database <https://docs.oracle.com/pls/topic/lookup?
206+
ctx=db21&id=RIWIN-GUID-33D575DD-47FF-42B1-A82F-049D3F2A8791>`__.
207207

208208
- If you are not passing a library directory parameter to
209209
:meth:`oracledb.init_oracle_client()`, then restart your command prompt

0 commit comments

Comments
 (0)