Skip to content

Commit 0cd0de4

Browse files
committed
Complete update of documentation, test cases and other non-code files for 6.5 release
1 parent 622c44a commit 0cd0de4

19 files changed

+494
-156
lines changed

doc/src/api_manual/connection.rst

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1162,15 +1162,15 @@ Connection Methods
11621162

11631163
Extended metadata is now always returned and includes the following information:
11641164

1165-
- ``annotations``: The `annotations <https://docs.oracle.com/en/database/oracle/oracle-database/23/sqlrf/annotations_clause.html#GUID-1AC16117-BBB6-4435-8794-2B99F8F68052>`__ object associated with the fetched column. If the column has no associated annotations, this property value is `undefined`. Annotations are supported from Oracle Database 23c onwards. If node-oracledb Thick mode is used, Oracle Client 23c is also required.
1165+
- ``annotations``: The `annotations <https://docs.oracle.com/en/database/oracle/oracle-database/23/sqlrf/annotations_clause.html#GUID-1AC16117-BBB6-4435-8794-2B99F8F68052>`__ object associated with the fetched column. If the column has no associated annotations, this property value is `undefined`. Annotations are supported from Oracle Database 23ai onwards. If node-oracledb Thick mode is used, Oracle Client 23ai is also required.
11661166

11671167
- ``byteSize``: The database byte size. This is only set for ``oracledb.DB_TYPE_VARCHAR``, ``oracledb.DB_TYPE_CHAR`` and ``oracledb.DB_TYPE_RAW`` column types.
11681168
- ``dbType``: one of the :ref:`Oracle Database Type Constant <oracledbconstantsdbtype>` values.
11691169
- ``dbTypeClass``: The class associated with the database type. This is only set if the database type is an object type.
11701170
- ``dbTypeName``: The name of the database type, such as “NUMBER” or “VARCHAR2”. For object types, this will be the object name.
1171-
- ``domainName``: The name of the `SQL domain <https://docs.oracle.com/en/database/oracle/oracle-database/23/sqlrf/create-domain.html#GUID-17D3A9C6-D993-4E94-BF6B-CACA56581F41>`__ associated with the fetched column. If the column does not have a SQL domain, this property value is `undefined`. SQL domains are supported from Oracle Database 23c onwards. If node-oracledb Thick mode is used, Oracle Client 23c is also required.
1171+
- ``domainName``: The name of the `SQL domain <https://docs.oracle.com/en/database/oracle/oracle-database/23/sqlrf/create-domain.html#GUID-17D3A9C6-D993-4E94-BF6B-CACA56581F41>`__ associated with the fetched column. If the column does not have a SQL domain, this property value is `undefined`. SQL domains are supported from Oracle Database 23ai onwards. If node-oracledb Thick mode is used, Oracle Client 23ai is also required.
11721172

1173-
- ``domainSchema``: The schema name of the `SQL domain <https://docs.oracle.com/en/database/oracle/oracle-database/23/sqlrf/create-domain.html#GUID-17D3A9C6-D993-4E94-BF6B-CACA56581F41>`__ associated with the fetched column. If the column does not have a SQL domain, this property value is `undefined`. SQL domains are supported from Oracle Database 23c onwards. If node-oracledb Thick mode is used, Oracle Client 23c is also required.
1173+
- ``domainSchema``: The schema name of the `SQL domain <https://docs.oracle.com/en/database/oracle/oracle-database/23/sqlrf/create-domain.html#GUID-17D3A9C6-D993-4E94-BF6B-CACA56581F41>`__ associated with the fetched column. If the column does not have a SQL domain, this property value is `undefined`. SQL domains are supported from Oracle Database 23ai onwards. If node-oracledb Thick mode is used, Oracle Client 23ai is also required.
11741174

11751175
- ``fetchType``: One of the :ref:`Node-oracledb Type Constant <oracledbconstantsnodbtype>` values.
11761176
- ``isJson``: Indicates if the column is known to contain JSON data. This will be ``true`` for JSON columns (from Oracle Database 21c) and for LOB and VARCHAR2 columns where "IS JSON" constraint is enabled (from Oracle Database 19c). This property will be ``false`` for all the other columns. It will also be ``false`` for any column when Oracle Client 18c or earlier is used in Thick mode or the Oracle Database version is earlier than 19c.
@@ -1179,6 +1179,12 @@ Connection Methods
11791179
- ``nullable``: Indicates whether ``NULL`` values are permitted for this column.
11801180
- ``precision``: Set only for ``oracledb.DB_TYPE_NUMBER``, ``oracledb.DB_TYPE_TIMESTAMP``, ``oracledb.DB_TYPE_TIMESTAMP_TZ``, and ``oracledb.DB_TYPE_TIMESTAMP_LTZ`` columns.
11811181
- ``scale``: Set only for ``oracledb.DB_TYPE_NUMBER`` columns.
1182+
- ``vectorDimensions``: The number of dimensions of the vector column. If the column is not a vector column or allows for any number of dimensions, then the value of this property is *undefined*.
1183+
- ``vectorFormat``: The storage format of each dimension value in the vector column. If the column is not a vector column or allows for any storage format, then the value of this property is *undefined*.
1184+
1185+
.. versionchanged:: 6.5
1186+
1187+
The ``vectorDimensions`` and ``vectorFormat`` information attributes were added.
11821188

11831189
.. versionchanged:: 6.4
11841190

doc/src/api_manual/oracledb.rst

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,11 @@ instead of ``result.metadata[0].fetchType == 2001``.
181181
* - ``oracledb.DB_TYPE_XMLTYPE``
182182
- 2032
183183
- XMLTYPE
184+
* - ``oracledb.DB_TYPE_VECTOR``
185+
- 2033
186+
- VECTOR
187+
188+
.. versionadded:: 6.5
184189

185190
Note that the values for these constants changed in node-oracledb 4.0.
186191

@@ -864,6 +869,34 @@ Constants for two-phase commit (TPC) functions
864869
- 1048576
865870
- Suspend the TPC transaction.
866871

872+
Vector Type Constants
873+
---------------------
874+
.. versionadded:: 6.5
875+
876+
Constants for the :ref:`vectorFormat <execmetadata>` attribute.
877+
878+
.. list-table-with-summary:: Vector Type Constants
879+
:header-rows: 1
880+
:class: wy-table-responsive
881+
:align: center
882+
:widths: 10 10 30
883+
:summary: The first column displays the name of the vector type constant
884+
name. The second column displays the value of the constant. The third
885+
column displays the description of the constant.
886+
887+
* - Constant Name
888+
- Value
889+
- Description
890+
* - ``oracledb.VECTOR_FORMAT_FLOAT32``
891+
- 2
892+
- The storage format of each dimension value in the vector column is a 32-bit floating-point number.
893+
* - ``VECTOR_FORMAT_FLOAT64``
894+
- 3
895+
- The storage format of each dimension value in the vector column is a 64-bit floating-point number.
896+
* - ``VECTOR_FORMAT_INT8``
897+
- 4
898+
- The storage format of each dimension value in the vector column is an 8-bit signed integer.
899+
867900
.. _oracledbproperties:
868901

869902
Oracledb Properties

doc/src/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@
4545
# from the other)
4646
#
4747
# The short X.Y version.
48-
version = '6.4'
49-
release = '6.4.0'
48+
version = '6.5'
49+
release = '6.5.0'
5050

5151
# There are two options for replacing |today|: either, you set today to some
5252
# non-false value, then it is used:

doc/src/index.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ for Node.js powers high performance Oracle Database applications.
99
:ref:`release notes <releasenotes>`.
1010

1111
This module is currently tested with Node.js 16, 18, and 20 against Oracle
12-
Database 23c, 21c, 19c, 12c, and 11gR2.
12+
Database 23ai, 21c, 19c, 12c, and 11gR2.
1313

1414
You can use assistive technology products, such as screen readers, while you
1515
work with the node-oracledb documentation. You can also use the keyboard
@@ -35,6 +35,7 @@ User Guide
3535
user_guide/lob_data.rst
3636
user_guide/json_data_type.rst
3737
user_guide/xml_data_type.rst
38+
user_guide/vector_data_type.rst
3839
user_guide/objects.rst
3940
user_guide/soda.rst
4041
user_guide/aq.rst

doc/src/release_notes.rst

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,20 @@ node-oracledb `v6.5.0 <https://github.com/oracle/node-oracledb/compare/v6.4.0...
1313
Common Changes
1414
++++++++++++++
1515

16+
#) Added comprehensive support for Oracle Database 23ai
17+
:ref:`VECTOR <vectors>` data type.
18+
1619
#) Incorporated changes to use end of data request flag set with data packets
17-
available in Oracle Database 23c to improve handling of the async reads.
20+
available in Oracle Database 23ai to improve handling of the async reads.
1821

1922
#) Added class :ref:`oracledb.JsonId <jsonid>` to represent JSON ID values
2023
returned by SODA in Oracle Database 23.4 and later in the ``_id``
2124
attribute of documents stored in native collections.
2225

23-
#) Added support for an Oracle Database 23c JSON feature allowing for field
26+
#) Added support for an Oracle Database 23ai JSON feature allowing for field
2427
names with more than 255 UTF-8 encoded bytes.
2528

26-
#) Added support for an Oracle Database 23c JSON feature improving JSON
29+
#) Added support for an Oracle Database 23ai JSON feature improving JSON
2730
storage usage.
2831

2932
#) Updated the error thrown during pool reconfiguration from ``ORA-24413`` to
@@ -53,7 +56,7 @@ Thin Mode Changes
5356
#) Added support for easy connect string entries in tnsnames.ora.
5457
See `Issue #1644 <https://github.com/oracle/node-oracledb/issues/1644>`__.
5558

56-
#) Added support for Oracle Database 23c feature that can improve the
59+
#) Added support for Oracle Database 23ai feature that can improve the
5760
performance of connection creation by reducing the number of
5861
round trips required for all connections created.
5962

@@ -67,7 +70,7 @@ Thin Mode Changes
6770

6871
#) Added support for :meth:`pool reconfiguration <pool.reconfigure()>`.
6972

70-
#) Added support for Oracle Database 23c
73+
#) Added support for Oracle Database 23ai
7174
:ref:`Implicit Connection Pooling <implicitpool>` in Database Resident
7275
Connection Pooling (DRCP) and Proxy Resident Connection Pooling (PRCP).
7376

@@ -385,7 +388,7 @@ Common Changes
385388
Thin Mode Changes
386389
+++++++++++++++++
387390

388-
#) Added support for an Oracle Database 23c feature that can improve the
391+
#) Added support for an Oracle Database 23ai feature that can improve the
389392
performance of connection creation by reducing the number of round trips
390393
required to create the second and subsequent connections to the same
391394
database.
@@ -397,14 +400,14 @@ Thin Mode Changes
397400
#) Added new ``sslAllowWeakDNMatch`` connection attribute in :ref:`createPool()
398401
<createpoolpoolattrssslallowweak>` and :ref:`getConnection()
399402
<getconnectiondbattrssslallowweak>` methods and support for
400-
``SSL_WEAK_DN_MATCH`` (an Oracle Database 23c feature). If set, this
403+
``SSL_WEAK_DN_MATCH`` (an Oracle Database 23ai feature). If set, this
401404
enables ``sslServerDNMatch`` / ``SSL_SERVER_DN_MATCH`` to check the
402405
database server certificate (but not the listener) and enables the service
403406
name to be used for partial DN matching. The search order is: the host
404407
name, then the Subject Alternative Name (SAN), and then the service name.
405408

406409
#) Added support to include database error cause/action URLs (introduced from
407-
Oracle Database 23c onwards) for ORA error messages.
410+
Oracle Database 23ai onwards) for ORA error messages.
408411

409412
#) Added network connection optimization for multiple database hosts.
410413
If a host is found to be unreachable during connection, the host is added
@@ -440,7 +443,7 @@ Thin Mode Changes
440443
same certificate.
441444

442445
#) Fixed bug with duplicate data for queries that exceed 2016 columns (only
443-
possible with Oracle Database 23c).
446+
possible with Oracle Database 23ai).
444447

445448
Thick Mode Changes
446449
++++++++++++++++++
@@ -647,7 +650,7 @@ node-oracledb `v6.0.0 <https://github.com/oracle/node-oracledb/compare/v5.5.0...
647650
- Changed ``oracledb.DB_TYPE_*`` constants to be ``DbType`` objects
648651
instead of numbers.
649652

650-
- Added support for the Oracle Database 23c BOOLEAN SQL type.
653+
- Added support for the Oracle Database 23ai BOOLEAN SQL type.
651654

652655
- Fixed type used when fetching NCLOB as a string.
653656

doc/src/user_guide/appendix_a.rst

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ node-oracledb Thin and Thick modes. For more details see :ref:`modediff`.
128128
* - Oracle Database Dedicated Servers, Shared Servers, and Database Resident Connection Pooling (DRCP) (see :ref:`drcp`)
129129
- Yes
130130
- Yes
131-
* - Oracle Database 23c Implicit connection pooling for DRCP and PRCP (see :ref:`implicitpool`)
131+
* - Oracle Database 23ai Implicit connection pooling for DRCP and PRCP (see :ref:`implicitpool`)
132132
- Yes
133133
- Yes
134134
* - Multitenant Databases
@@ -278,10 +278,10 @@ node-oracledb Thin and Thick modes. For more details see :ref:`modediff`.
278278
* - Oracle Database 21c JSON data type (see :ref:`json21ctype`)
279279
- Yes
280280
- Yes
281-
* - Oracle Database 23c JSON duality view
281+
* - Oracle Database 23ai JSON duality view
282282
- Yes
283283
- Yes
284-
* - Oracle Database 23c BOOLEAN data type (see :ref:`oracledbconstantsdbtype`)
284+
* - Oracle Database 23ai BOOLEAN data type (see :ref:`oracledbconstantsdbtype`)
285285
- Yes
286286
- Yes
287287
* - ROWID, UROWID data types (see :ref:`oracledbconstantsdbtype`)
@@ -299,6 +299,9 @@ node-oracledb Thin and Thick modes. For more details see :ref:`modediff`.
299299
* - NCHAR, NVARCHAR2, NCLOB data types (see :ref:`oracledbconstantsdbtype`)
300300
- Yes
301301
- Yes
302+
* - Oracle Database 23c VECTOR data type (see :ref:`oracledbconstantsdbtype`)
303+
- Yes
304+
- Yes
302305
* - Bind PL/SQL Boolean
303306
- Yes
304307
- Yes

0 commit comments

Comments
 (0)