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/connection.rst
+22-5Lines changed: 22 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1411,16 +1411,32 @@ Connection Methods
1411
1411
:header-rows: 1
1412
1412
:class: wy-table-responsive
1413
1413
:align: center
1414
-
:widths: 10 10 30
1414
+
:widths: 10 30
1415
1415
:summary: The first column displays the attribute name. The second
1416
1416
column displays the description of the attribute.
1417
1417
1418
1418
* - Attribute Name
1419
-
- Data Type
1420
1419
- Description
1421
1420
* - ``payloadType``
1422
-
- String
1423
-
- Contains the name of an Oracle Database object type, or a :ref:`DbObject Class <dbobjectclass>` earlier acquired from :meth:`connection.getDbObjectClass()`. If the name of an object type is used, it is recommended that a fully qualified name be used.
1421
+
- - For :ref:`simple string or stream of bytes (RAW) messages <aqrawexample>`, it is not necessary to explicitly specify this attribute. This is the default setting for the payload type. For example::
1422
+
1423
+
connection.getQueue(queueName)
1424
+
1425
+
will have RAW messages as the default ``payloadType`` setting.
1426
+
1427
+
Or you can also explicitly set this attribute to ``oracledb.DB_TYPE_RAW``. For example::
- For :ref:`Database object messages <aqobjexample>`, set this attribute to the name of an Oracle Database object type, or a :ref:`DbObject Class <dbobjectclass>` earlier acquired from :meth:`connection.getDbObjectClass()`. If the name of an object type is used, it is recommended that a fully qualified name be used. For example, if the Oracle Database object type name is ``DEMOQUEUE.USER_ADDRESS_TYPE``::
Previously, the default value was RAW and you did not have to set this attribute for RAW messages. Also, only the name of an Oracle Database object type, or a :ref:`DbObject Class <dbobjectclass>` could be specified in the this attribute. Now, you can also explicitly specify ``oracledb.DB_TYPE_RAW`` for RAW messages and ``oracledb.DB_TYPE_JSON`` for JSON messages in this attribute.
1424
1440
1425
1441
**Callback**:
1426
1442
@@ -2607,7 +2623,8 @@ Connection Methods
2607
2623
2608
2624
promise = unsubscribe(String name);
2609
2625
2610
-
Unregisters a :ref:`Continuous Query Notification (CQN) <cqn>` subscription
2626
+
Unregisters a :ref:`Continuous Query Notification (CQN) <cqn>` and
0 commit comments