Skip to content

Commit f11e53e

Browse files
committed
Test, Documentation and Release Note updates
1 parent 4c693e0 commit f11e53e

File tree

6 files changed

+176
-129
lines changed

6 files changed

+176
-129
lines changed

doc/src/api_manual/oracledb.rst

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1450,13 +1450,13 @@ Each of the configuration properties is described below.
14501450

14511451
The default value is *1*.
14521452

1453-
With fixed-sized :ref:`homogeneous <createpoolpoolattrshomogeneous>`
1454-
pools (where ``poolMin`` equals ``poolMax``), and using Oracle Client 18c
1455-
(or later), you may wish to evaluate setting ``poolIncrement`` greater
1456-
than 1. This can expedite regrowth when the number of
1457-
:attr:`connections established <pool.connectionsOpen>` has become lower
1458-
than ``poolMin``, for example if network issues have caused connections
1459-
to become unusable and they have been dropped from the pool.
1453+
With fixed-size :ref:`homogeneous <createpoolpoolattrshomogeneous>`
1454+
pools (where ``poolMin`` equals ``poolMax``), and when using Oracle Client
1455+
18c (or later) for node-oracledb Thick mode, you may wish to evaluate
1456+
setting ``poolIncrement`` greater than 1. This can expedite regrowth when
1457+
the number of :attr:`connections established <pool.connectionsOpen>` has
1458+
become lower than ``poolMin``, for example, when network issues cause
1459+
connections to become unusable and get them dropped from the pool.
14601460

14611461
This property may be overridden when
14621462
:meth:`creating a connection pool <oracledb.createPool()>`.
@@ -1871,9 +1871,10 @@ Oracledb Methods
18711871
password and connection string. A pool is typically created once during
18721872
application initialization.
18731873

1874-
Internally, ``createPool()`` creates an `Oracle Call Interface Session
1875-
Pool <https://www.oracle.com/pls/topic/lookup?ctx=dblatest&id=GUID-F9662FFB-
1876-
EAEF-495C-96FC-49C6D1D9625C>`__ for each Pool object.
1874+
In node-oracledb Thick mode, ``createPool()`` internally creates an
1875+
`Oracle Call Interface Session Pool <https://www.oracle.com/pls/topic/
1876+
lookup?ctx=dblatest&id=GUID-F9662FFB-EAEF-495C-96FC-49C6D1D9625C>`__ for
1877+
each Pool object.
18771878

18781879
The default properties may be overridden by specifying new properties in
18791880
the ``poolAttrs`` parameter.
@@ -1989,7 +1990,7 @@ Oracledb Methods
19891990

19901991
.. desupported:: 6.0
19911992

1992-
Use :ref:`accessToken <createpoolpoolattrsaccesstoken>` instead, which was enhanced to support a callback.
1993+
Use :ref:`accessToken <createpoolpoolattrsaccesstoken>` with a callback instead.
19931994
* - ``connectString``, ``connectionString``
19941995
- String
19951996
- Both

doc/src/api_manual/pool.rst

Lines changed: 58 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ A connection *Pool* object is created by calling the
88
:meth:`oracledb.createPool()` method.
99

1010
The *Pool* object obtains connections to the Oracle database using the
11-
``getConnection()`` method to “check them out” from the pool. Internally
12-
`Oracle Call Interface Session Pooling <https://www.oracle.com/pls/topic/
13-
lookup?ctx=dblatest&id=GUID-F9662FFB-EAEF-495C-96FC-49C6D1D9625C>`__
14-
is used.
11+
``getConnection()`` method to “check them out” from the pool. The
12+
node-oracledb Thick mode internally uses `Oracle Call Interface Session
13+
Pooling <https://www.oracle.com/pls/topic/lookup?ctx=dblatest&id=GUID-
14+
F9662FFB-EAEF-495C-96FC-49C6D1D9625C>`__.
1515

1616
After the application finishes using a connection pool, it should
1717
release all connections and terminate the connection pool by calling the
@@ -50,11 +50,17 @@ values.
5050
This read-only property is a string which specifies the connection string
5151
used to connect to the Oracle Database Instance.
5252

53+
See :ref:`connectString <createpoolpoolattrsconnectstring>` parameter of
54+
:meth:`oracledb.createPool()`.
55+
5356
.. attribute:: pool.edition
5457

5558
This read-only property is a string which identifies the edition name
5659
used.
5760

61+
See :ref:`edition <createpoolpoolattrsedition>` parameter of
62+
:meth:`oracledb.createPool()` and :attr:`oracledb.edition`.
63+
5864
.. note::
5965

6066
This property can only be used in the node-oracledb Thick mode. See
@@ -65,6 +71,9 @@ values.
6571
This read-only property is a boolean which denotes whether the Oracle
6672
Client events mode is enabled or not.
6773

74+
See :ref:`events <createpoolpoolattrsevents>` parameter of
75+
:meth:`oracledb.createPool()` and :attr:`oracledb.events`.
76+
6877
.. note::
6978

7079
This property can only be used in the node-oracledb Thick mode. See
@@ -75,18 +84,27 @@ values.
7584
This read-only property is a boolean which denotes whether connections
7685
are established using external authentication or not.
7786

87+
See :ref:`externalAuth <createpoolpoolattrsexternalauth>` parameter of
88+
:meth:`oracledb.createPool()` and :attr:`oracledb.externalAuth`.
89+
7890
.. attribute:: pool.enableStatistics
7991

8092
This read-only property is a boolean which identifies whether pool usage
8193
statistics are being recorded.
8294

95+
See :ref:`enableStatistics <createpoolpoolattrsstats>` parameter of
96+
:meth:`oracledb.createPool()`.
97+
8398
.. attribute:: pool.homogeneous
8499

85100
This read-only property is a boolean which identifies whether the
86101
connections in the pool all have the same credentials (a
87102
‘homogenous’ pool), or whether different credentials can be used (a
88103
‘heterogeneous’ pool).
89104

105+
See :ref:`homogeneous <createpoolpoolattrshomogeneous>` parameter of
106+
:meth:`oracledb.createPool()`.
107+
90108
.. attribute:: pool.poolAlias
91109

92110
This read-only property is a number which specifies the alias of this
@@ -95,20 +113,25 @@ values.
95113
undefined for the second and subsequent pools that were created without
96114
an explicit alias specified.
97115

116+
See :ref:`poolAlias <createpoolpoolattrspoolalias>` parameter of
117+
:meth:`oracledb.createPool()`.
118+
98119
.. attribute:: pool.poolIncrement
99120

100121
This read-only property is a number which specifies the number of
101122
connections that are opened whenever a connection request
102123
exceeds the number of currently open connections.
103124

104-
See :attr:`oracledb.poolIncrement`.
125+
See :ref:`poolIncrement <createpoolpoolattrspoolincrement>` parameter of
126+
:meth:`oracledb.createPool()` and :attr:`oracledb.poolIncrement`.
105127

106128
.. attribute:: pool.poolMax
107129

108130
This read-only property is a number which specifies the maximum number
109131
of connections that can be open in the connection pool.
110132

111-
See :attr:`oracledb.poolMax`.
133+
See :ref:`poolMax <createpoolpoolattrspoolmax>` parameter of
134+
:meth:`oracledb.createPool()` and :attr:`oracledb.poolMax`.
112135

113136
.. attribute:: pool.poolMaxPerShard
114137

@@ -117,7 +140,8 @@ values.
117140
database. This lets connections in the pool be balanced across the
118141
shards.
119142

120-
See :attr:`oracledb.poolMaxPerShard`.
143+
See :ref:`poolMaxPerShard <createpoolpoolattrspoolmaxpershard>` parameter
144+
of :meth:`oracledb.createPool()` and :attr:`oracledb.poolMaxPerShard`.
121145

122146
.. note::
123147

@@ -130,7 +154,8 @@ values.
130154
of connections a connection pool maintains, even when there is no
131155
activity to the target database.
132156

133-
See :attr:`oracledb.poolMin`.
157+
See :ref:`poolMin <createpoolpoolattrspoolmin>` parameter of
158+
:meth:`oracledb.createPool()` and :attr:`oracledb.poolMin`.
134159

135160
.. attribute:: pool.poolPingInterval
136161

@@ -140,15 +165,18 @@ values.
140165
node-oracledb pings the database prior to returning that connection to
141166
the application.
142167

143-
See :attr:`oracledb.poolPingInterval`.
168+
See :ref:`poolPingInterval <createpoolpoolattrspoolpinginterval>`
169+
parameter of :meth:`oracledb.createPool()` and
170+
:attr:`oracledb.poolPingInterval`.
144171

145172
.. attribute:: pool.poolTimeout
146173

147174
This read-only property is a number which specifies the time (in seconds)
148175
after which the pool terminates idle connections (unused in the pool). The
149176
number of connections does not drop below poolMin.
150177

151-
See :attr:`oracledb.poolTimeout`.
178+
See :ref:`poolTimeout <createpoolpoolattrspooltimeout>` parameter of
179+
:meth:`oracledb.createPool()` and :attr:`oracledb.poolTimeout`.
152180

153181
.. attribute:: pool.queueMax
154182

@@ -158,35 +186,44 @@ values.
158186
of pending ``pool.getConnection()`` calls that can be
159187
:ref:`queued <connpoolqueue>`.
160188

161-
See :attr:`oracledb.queueMax`.
189+
See :ref:`queueMax <createpoolpoolattrsqueuemax>` parameter of
190+
:meth:`oracledb.createPool()` and :attr:`oracledb.queueMax`.
162191

163192
.. attribute:: pool.queueRequests
164193

165-
This property was removed in node-oracledb 3.0. See :ref:`Connection Pool
166-
Queue <connpoolqueue>` for more information.
194+
.. desupported:: 3.0
195+
196+
See :ref:`Connection Pool Queue <connpoolqueue>` for more information.
167197

168198
.. attribute:: pool.queueTimeout
169199

170200
This read-only property is a number which identifies the time
171201
(in milliseconds) that a connection request should wait in the
172202
queue before the request is terminated.
173203

174-
See :attr:`oracledb.queueTimeout`.
204+
See :ref:`queueTimeout <createpoolpoolattrsqueuetimeout>` parameter of
205+
:meth:`oracledb.createPool()` and :attr:`oracledb.queueTimeout`.
175206

176207
.. attribute:: pool.sessionCallback
177208

178209
This read-only property can be a function or string. The Node.js or
179210
PL/SQL function that is invoked by ``pool.getConnection()`` when the
180211
connection is brand new.
181212

182-
See :ref:`Connection Tagging and Session State <connpooltagging>`.
213+
See :ref:`sessionCallback <createpoolpoolattrssessioncallback>` parameter
214+
of :meth:`oracledb.createPool()`.
215+
216+
Also, see :ref:`Connection Tagging and Session State <connpooltagging>`.
183217

184218
.. attribute:: pool.sodaMetaDataCache
185219

186220
This read-only property is a boolean which determines whether the pool
187221
has a metadata cache enabled for SODA collection access.
188222

189-
See :ref:`Using the SODA Metadata Cache <sodamdcache>`.
223+
See :ref:`sodaMetaDataCache <createpoolpoolattrssodamdcache>` parameter of
224+
:meth:`oracledb.createPool()`.
225+
226+
Also, see :ref:`Using the SODA Metadata Cache <sodamdcache>`.
190227

191228
.. note::
192229

@@ -210,7 +247,8 @@ values.
210247
statements to be cached in the :ref:`statement
211248
cache <stmtcache>` of each connection.
212249

213-
See :attr:`oracledb.stmtCacheSize`.
250+
See :ref:`stmtCacheSize <createpoolpoolattrsstmtcachesize>` parameter of
251+
:meth:`oracledb.createPool()` and :attr:`oracledb.stmtCacheSize`.
214252

215253
.. attribute:: pool.thin
216254

@@ -231,6 +269,9 @@ values.
231269
This read-only property is a string which specifies the database username
232270
for connections in the pool.
233271

272+
See :ref:`user <createpoolpoolattrsuser>` parameter of
273+
:meth:`oracledb.createPool()`.
274+
234275
.. _poolmethods:
235276

236277
Pool Methods

doc/src/api_manual/statistics.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ API: PoolStatistics Class
66

77
A PoolStatistics object is returned from :meth:`pool.getStatistics()`.
88
It contains attributes recording the pool statistics and pool configuration.
9-
The attributes are described in :ref:`poolstats`.
9+
The attributes are described in :ref:`Connection Pool Monitoring <poolstats>`.
1010

1111
.. versionadded:: 5.3
1212

doc/src/release_notes.rst

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,18 @@
55
node-oracledb Release Notes
66
=============================
77

8-
node-oracledb `v6.0.1 <https://github.com/oracle/node-oracledb/compare/v6.0.0...v6.0.1>`__ (DD MON 2023)
8+
node-oracledb `v6.0.1 <https://github.com/oracle/node-oracledb/compare/v6.0.0...v6.0.1>`__ (TBD)
99
--------------------------------------------------------------------------------------------------------
1010

11-
#) Allow bind variables to use multi-byte characters. `Issue #1554 <https://github.com/oracle/node-oracledb/issues/1554>`__.
11+
#) Allow bind variables to use multi-byte characters. Fix for `Issue #1554 <https://github.com/oracle/node-oracledb/issues/1554>`__.
12+
13+
#) Allow using colons in multiple single-line SQL comments in Thin mode. Fix for `Issue #1561 <https://github.com/oracle/node-oracledb/issues/1561>`__.
14+
15+
#) Added enhanced binding support in Thin mode.
16+
17+
#) Improved statement cache handling in Thin mode.
18+
19+
#) Added clear error message when users try to establish a connection with unsupported database versions.
1220

1321
node-oracledb `v6.0.0 <https://github.com/oracle/node-oracledb/compare/v5.5.0...v6.0.0>`__ (24 May 2023)
1422
--------------------------------------------------------------------------------------------------------

0 commit comments

Comments
 (0)