@@ -8,10 +8,10 @@ A connection *Pool* object is created by calling the
8
8
:meth: `oracledb.createPool() ` method.
9
9
10
10
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> `__ .
15
15
16
16
After the application finishes using a connection pool, it should
17
17
release all connections and terminate the connection pool by calling the
@@ -50,11 +50,17 @@ values.
50
50
This read-only property is a string which specifies the connection string
51
51
used to connect to the Oracle Database Instance.
52
52
53
+ See :ref: `connectString <createpoolpoolattrsconnectstring >` parameter of
54
+ :meth: `oracledb.createPool() `.
55
+
53
56
.. attribute :: pool.edition
54
57
55
58
This read-only property is a string which identifies the edition name
56
59
used.
57
60
61
+ See :ref: `edition <createpoolpoolattrsedition >` parameter of
62
+ :meth: `oracledb.createPool() ` and :attr: `oracledb.edition `.
63
+
58
64
.. note ::
59
65
60
66
This property can only be used in the node-oracledb Thick mode. See
@@ -65,6 +71,9 @@ values.
65
71
This read-only property is a boolean which denotes whether the Oracle
66
72
Client events mode is enabled or not.
67
73
74
+ See :ref: `events <createpoolpoolattrsevents >` parameter of
75
+ :meth: `oracledb.createPool() ` and :attr: `oracledb.events `.
76
+
68
77
.. note ::
69
78
70
79
This property can only be used in the node-oracledb Thick mode. See
@@ -75,18 +84,27 @@ values.
75
84
This read-only property is a boolean which denotes whether connections
76
85
are established using external authentication or not.
77
86
87
+ See :ref: `externalAuth <createpoolpoolattrsexternalauth >` parameter of
88
+ :meth: `oracledb.createPool() ` and :attr: `oracledb.externalAuth `.
89
+
78
90
.. attribute :: pool.enableStatistics
79
91
80
92
This read-only property is a boolean which identifies whether pool usage
81
93
statistics are being recorded.
82
94
95
+ See :ref: `enableStatistics <createpoolpoolattrsstats >` parameter of
96
+ :meth: `oracledb.createPool() `.
97
+
83
98
.. attribute :: pool.homogeneous
84
99
85
100
This read-only property is a boolean which identifies whether the
86
101
connections in the pool all have the same credentials (a
87
102
‘homogenous’ pool), or whether different credentials can be used (a
88
103
‘heterogeneous’ pool).
89
104
105
+ See :ref: `homogeneous <createpoolpoolattrshomogeneous >` parameter of
106
+ :meth: `oracledb.createPool() `.
107
+
90
108
.. attribute :: pool.poolAlias
91
109
92
110
This read-only property is a number which specifies the alias of this
@@ -95,20 +113,25 @@ values.
95
113
undefined for the second and subsequent pools that were created without
96
114
an explicit alias specified.
97
115
116
+ See :ref: `poolAlias <createpoolpoolattrspoolalias >` parameter of
117
+ :meth: `oracledb.createPool() `.
118
+
98
119
.. attribute :: pool.poolIncrement
99
120
100
121
This read-only property is a number which specifies the number of
101
122
connections that are opened whenever a connection request
102
123
exceeds the number of currently open connections.
103
124
104
- See :attr: `oracledb.poolIncrement `.
125
+ See :ref: `poolIncrement <createpoolpoolattrspoolincrement >` parameter of
126
+ :meth: `oracledb.createPool() ` and :attr: `oracledb.poolIncrement `.
105
127
106
128
.. attribute :: pool.poolMax
107
129
108
130
This read-only property is a number which specifies the maximum number
109
131
of connections that can be open in the connection pool.
110
132
111
- See :attr: `oracledb.poolMax `.
133
+ See :ref: `poolMax <createpoolpoolattrspoolmax >` parameter of
134
+ :meth: `oracledb.createPool() ` and :attr: `oracledb.poolMax `.
112
135
113
136
.. attribute :: pool.poolMaxPerShard
114
137
@@ -117,7 +140,8 @@ values.
117
140
database. This lets connections in the pool be balanced across the
118
141
shards.
119
142
120
- See :attr: `oracledb.poolMaxPerShard `.
143
+ See :ref: `poolMaxPerShard <createpoolpoolattrspoolmaxpershard >` parameter
144
+ of :meth: `oracledb.createPool() ` and :attr: `oracledb.poolMaxPerShard `.
121
145
122
146
.. note ::
123
147
@@ -130,7 +154,8 @@ values.
130
154
of connections a connection pool maintains, even when there is no
131
155
activity to the target database.
132
156
133
- See :attr: `oracledb.poolMin `.
157
+ See :ref: `poolMin <createpoolpoolattrspoolmin >` parameter of
158
+ :meth: `oracledb.createPool() ` and :attr: `oracledb.poolMin `.
134
159
135
160
.. attribute :: pool.poolPingInterval
136
161
@@ -140,15 +165,18 @@ values.
140
165
node-oracledb pings the database prior to returning that connection to
141
166
the application.
142
167
143
- See :attr: `oracledb.poolPingInterval `.
168
+ See :ref: `poolPingInterval <createpoolpoolattrspoolpinginterval >`
169
+ parameter of :meth: `oracledb.createPool() ` and
170
+ :attr: `oracledb.poolPingInterval `.
144
171
145
172
.. attribute :: pool.poolTimeout
146
173
147
174
This read-only property is a number which specifies the time (in seconds)
148
175
after which the pool terminates idle connections (unused in the pool). The
149
176
number of connections does not drop below poolMin.
150
177
151
- See :attr: `oracledb.poolTimeout `.
178
+ See :ref: `poolTimeout <createpoolpoolattrspooltimeout >` parameter of
179
+ :meth: `oracledb.createPool() ` and :attr: `oracledb.poolTimeout `.
152
180
153
181
.. attribute :: pool.queueMax
154
182
@@ -158,35 +186,44 @@ values.
158
186
of pending ``pool.getConnection() `` calls that can be
159
187
:ref: `queued <connpoolqueue >`.
160
188
161
- See :attr: `oracledb.queueMax `.
189
+ See :ref: `queueMax <createpoolpoolattrsqueuemax >` parameter of
190
+ :meth: `oracledb.createPool() ` and :attr: `oracledb.queueMax `.
162
191
163
192
.. attribute :: pool.queueRequests
164
193
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.
167
197
168
198
.. attribute :: pool.queueTimeout
169
199
170
200
This read-only property is a number which identifies the time
171
201
(in milliseconds) that a connection request should wait in the
172
202
queue before the request is terminated.
173
203
174
- See :attr: `oracledb.queueTimeout `.
204
+ See :ref: `queueTimeout <createpoolpoolattrsqueuetimeout >` parameter of
205
+ :meth: `oracledb.createPool() ` and :attr: `oracledb.queueTimeout `.
175
206
176
207
.. attribute :: pool.sessionCallback
177
208
178
209
This read-only property can be a function or string. The Node.js or
179
210
PL/SQL function that is invoked by ``pool.getConnection() `` when the
180
211
connection is brand new.
181
212
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 >`.
183
217
184
218
.. attribute :: pool.sodaMetaDataCache
185
219
186
220
This read-only property is a boolean which determines whether the pool
187
221
has a metadata cache enabled for SODA collection access.
188
222
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 >`.
190
227
191
228
.. note ::
192
229
@@ -210,7 +247,8 @@ values.
210
247
statements to be cached in the :ref: `statement
211
248
cache <stmtcache>` of each connection.
212
249
213
- See :attr: `oracledb.stmtCacheSize `.
250
+ See :ref: `stmtCacheSize <createpoolpoolattrsstmtcachesize >` parameter of
251
+ :meth: `oracledb.createPool() ` and :attr: `oracledb.stmtCacheSize `.
214
252
215
253
.. attribute :: pool.thin
216
254
@@ -231,6 +269,9 @@ values.
231
269
This read-only property is a string which specifies the database username
232
270
for connections in the pool.
233
271
272
+ See :ref: `user <createpoolpoolattrsuser >` parameter of
273
+ :meth: `oracledb.createPool() `.
274
+
234
275
.. _poolmethods :
235
276
236
277
Pool Methods
0 commit comments