@@ -177,7 +177,7 @@ For installation information, see the [Node-oracledb Installation Instructions][
177
177
- 4.2 [Connection Methods](#connectionmethods)
178
178
- 4.2.1 [`break()`](#break)
179
179
- 4.2.2 [`changePassword()`](#changepassword)
180
- - 4.2.3 [`close()`](#connectionclose)
180
+ - 4.2.3 [`close()`](#connectionclose), [`release()`](#connectionclose)
181
181
- 4.2.4 [`commit()`](#commit)
182
182
- 4.2.5 [`createLob()`](#connectioncreatelob)
183
183
- 4.2.6 [`execute()`](#execute)
@@ -227,35 +227,34 @@ For installation information, see the [Node-oracledb Installation Instructions][
227
227
- 4.2.11 [`getStatementInfo()`](#getstmtinfo)
228
228
- 4.2.12 [`ping()`](#connectionping)
229
229
- 4.2.13 [`queryStream()`](#querystream)
230
- - 4.2.14 [`release()`](#release)
231
- - 4.2.15 [`rollback()`](#rollback)
232
- - 4.2.16 [`shutdown()`](#conshutdown)
233
- - 4.2.16.1 [`shutdown()`: shutdownMode](#conshutdownmode)
234
- - 4.2.16.2 [`shutdown()`: Callback Function](#conshutdowncallback)
235
- - 4.2.17 [`subscribe()`](#consubscribe)
236
- - 4.2.17.1 [`subscribe()`: Name](#consubscribename)
237
- - 4.2.17.2 [`subscribe()`: Options](#consubscribeoptions)
238
- - 4.2.17.2.1 [`binds`](#consubscribeoptbinds)
239
- - 4.2.17.2.2 [`callback`](#consubscribeoptcallback)
240
- - 4.2.17.2.3 [`clientInitiated`](#consubscribeoptclientinitiated)
241
- - 4.2.17.2.4 [`groupingClass`](#consubscribeoptgroupingclass)
242
- - 4.2.17.2.5 [`groupingType`](#consubscribeoptgroupingtype)
243
- - 4.2.17.2.6 [`groupingValue`](#consubscribeoptgroupingvalue)
244
- - 4.2.17.2.7 [`ipAddress`](#consubscribeoptipaddress)
245
- - 4.2.17.2.8 [`namespace`](#consubscribeoptnamespace)
246
- - 4.2.17.2.9 [`operations`](#consubscribeoptoperations)
247
- - 4.2.17.2.10 [`port`](#consubscribeoptport)
248
- - 4.2.17.2.11 [`qos`](#consubscribeoptqos)
249
- - 4.2.17.2.12 [`sql`](#consubscribeoptsql)
250
- - 4.2.17.2.13 [`timeout`](#consubscribeopttimeout)
251
- - 4.2.17.3 [`subscribe()`: Callback Function](#consubscribecallback)
252
- - 4.2.18 [`startup()`](#constartup)
253
- - 4.2.18.1 [`startup()`: Options](#constartupoptions)
254
- - 4.2.18.1.1 [`force`](#constartupoptionsforce)
255
- - 4.2.18.1.2 [`pfile`](#constartupoptionspfile)
256
- - 4.2.18.1.3 [`restrict`](#constartupoptionsrestrict)
257
- - 4.2.18.2 [`startup()`: Callback Function](#constartupcallback)
258
- - 4.2.19 [`unsubscribe()`](#conunsubscribe)
230
+ - 4.2.14 [`rollback()`](#rollback)
231
+ - 4.2.15 [`shutdown()`](#conshutdown)
232
+ - 4.2.15.1 [`shutdown()`: shutdownMode](#conshutdownmode)
233
+ - 4.2.15.2 [`shutdown()`: Callback Function](#conshutdowncallback)
234
+ - 4.2.16 [`subscribe()`](#consubscribe)
235
+ - 4.2.16.1 [`subscribe()`: Name](#consubscribename)
236
+ - 4.2.16.2 [`subscribe()`: Options](#consubscribeoptions)
237
+ - 4.2.16.2.1 [`binds`](#consubscribeoptbinds)
238
+ - 4.2.16.2.2 [`callback`](#consubscribeoptcallback)
239
+ - 4.2.16.2.3 [`clientInitiated`](#consubscribeoptclientinitiated)
240
+ - 4.2.16.2.4 [`groupingClass`](#consubscribeoptgroupingclass)
241
+ - 4.2.16.2.5 [`groupingType`](#consubscribeoptgroupingtype)
242
+ - 4.2.16.2.6 [`groupingValue`](#consubscribeoptgroupingvalue)
243
+ - 4.2.16.2.7 [`ipAddress`](#consubscribeoptipaddress)
244
+ - 4.2.16.2.8 [`namespace`](#consubscribeoptnamespace)
245
+ - 4.2.16.2.9 [`operations`](#consubscribeoptoperations)
246
+ - 4.2.16.2.10 [`port`](#consubscribeoptport)
247
+ - 4.2.16.2.11 [`qos`](#consubscribeoptqos)
248
+ - 4.2.16.2.12 [`sql`](#consubscribeoptsql)
249
+ - 4.2.16.2.13 [`timeout`](#consubscribeopttimeout)
250
+ - 4.2.16.3 [`subscribe()`: Callback Function](#consubscribecallback)
251
+ - 4.2.17 [`startup()`](#constartup)
252
+ - 4.2.17.1 [`startup()`: Options](#constartupoptions)
253
+ - 4.2.17.1.1 [`force`](#constartupoptionsforce)
254
+ - 4.2.17.1.2 [`pfile`](#constartupoptionspfile)
255
+ - 4.2.17.1.3 [`restrict`](#constartupoptionsrestrict)
256
+ - 4.2.17.2 [`startup()`: Callback Function](#constartupcallback)
257
+ - 4.2.18 [`unsubscribe()`](#conunsubscribe)
259
258
5. [AqQueue Class](#aqqueueclass)
260
259
- 5.1 [AqQueue Properties](#aqqueueproperties)
261
260
- 5.1.1 [`name`](#aqqueuename)
@@ -2157,7 +2156,7 @@ Monitoring](#connpoolmonitor).
2157
2156
2158
2157
The default value is *false*.
2159
2158
2160
- This property was added in node-oracledb 5.2. The older, equivalent alias
2159
+ This property was added in node-oracledb 5.2. The obsolete property
2161
2160
`_enableStats` can still be used, but it will be removed in a future version of
2162
2161
node-oracledb.
2163
2162
@@ -3349,7 +3348,7 @@ This method was added in node-oracledb 2.2.
3349
3348
----------------------------|-------------
3350
3349
*Error error* | If `changePassword()` succeeds, `error` is NULL. If an error occurs, then `error` contains the [error message](#errorobj).
3351
3350
3352
- #### <a name="connectionclose"></a> 4.2.3 `connection.close()`
3351
+ #### <a name="connectionclose"></a> <a name="release"></a> 4.2.3 `connection.close()`
3353
3352
3354
3353
##### Prototype
3355
3354
@@ -3379,8 +3378,9 @@ make the connection unusable, then `close()` will drop that connection
3379
3378
from the connection pool so a future pooled `getConnection()` call
3380
3379
that grows the pool will create a new, valid connection.
3381
3380
3382
- This method was added to node-oracledb 1.9, replacing the equivalent
3383
- alias `connection.release()`.
3381
+ This method was added to node-oracledb 1.9, replacing the obsolete equivalent
3382
+ alias `connection.release()` which will be removed in a future version of
3383
+ node-oracledb.
3384
3384
3385
3385
##### Parameters
3386
3386
@@ -4490,11 +4490,7 @@ This method was added in node-oracledb 1.8.
4490
4490
4491
4491
See [execute()](#execute).
4492
4492
4493
- #### <a name="release"></a> 4.2.14 `connection.release()`
4494
-
4495
- An alias for [connection.close()](#connectionclose).
4496
-
4497
- #### <a name="rollback"></a> 4.2.15 `connection.rollback()`
4493
+ #### <a name="rollback"></a> 4.2.14 `connection.rollback()`
4498
4494
4499
4495
##### Prototype
4500
4496
@@ -4524,7 +4520,7 @@ connection.
4524
4520
----------------------------|-------------
4525
4521
*Error error* | If `rollback()` succeeds, `error` is NULL. If an error occurs, then `error` contains the [error message](#errorobj).
4526
4522
4527
- #### <a name="conshutdown"></a> 4.2.16 `connection.shutdown()`
4523
+ #### <a name="conshutdown"></a> 4.2.15 `connection.shutdown()`
4528
4524
4529
4525
##### Prototype
4530
4526
@@ -4558,7 +4554,7 @@ See [Database Start Up and Shut Down](#startupshutdown).
4558
4554
4559
4555
This method was added in node-oracledb 5.0.
4560
4556
4561
- ##### <a name="conshutdownmode"></a> 4.2.16 .1 `shutdown()`: shutdownMode
4557
+ ##### <a name="conshutdownmode"></a> 4.2.15 .1 `shutdown()`: shutdownMode
4562
4558
4563
4559
```
4564
4560
Number shutdownMode
@@ -4578,7 +4574,7 @@ need to be called a second time.
4578
4574
Only the second invocation of `connection.shutdown()` should use
4579
4575
`oracledb.SHUTDOWN_MODE_FINAL`.
4580
4576
4581
- ##### <a name="conshutdowncallback"></a> 4.2.16 .2 `shutdown()`: Callback Function
4577
+ ##### <a name="conshutdowncallback"></a> 4.2.15 .2 `shutdown()`: Callback Function
4582
4578
4583
4579
```
4584
4580
function(Error error)
@@ -4590,7 +4586,7 @@ Callback function parameter | Description
4590
4586
----------------------------|-------------
4591
4587
*Error error* | If `shutdown()` succeeds, `error` is NULL. If an error occurs, then `error` contains the [error message](#errorobj).
4592
4588
4593
- #### <a name="consubscribe"></a> 4.2.17 `connection.subscribe()`
4589
+ #### <a name="consubscribe"></a> 4.2.16 `connection.subscribe()`
4594
4590
4595
4591
##### Prototype
4596
4592
@@ -4634,7 +4630,7 @@ added in node-oracledb 4.0
4634
4630
4635
4631
The [`result`](#consubscribecallback) callback parameter was added in node-oracledb 4.0.
4636
4632
4637
- ##### <a name="consubscribename"></a> 4.2.17 .1 `subscribe()`: Name
4633
+ ##### <a name="consubscribename"></a> 4.2.16 .1 `subscribe()`: Name
4638
4634
4639
4635
```
4640
4636
String name
@@ -4644,15 +4640,15 @@ For Continuous Query Notification this is an arbitrary name given to
4644
4640
the subscription. For Advanced Queuing notifications this must be the
4645
4641
queue name.
4646
4642
4647
- ##### <a name="consubscribeoptions"></a> 4.2.17 .2 `subscribe()`: Options
4643
+ ##### <a name="consubscribeoptions"></a> 4.2.16 .2 `subscribe()`: Options
4648
4644
4649
4645
```
4650
4646
Object options
4651
4647
```
4652
4648
4653
4649
The options that control the subscription. The following properties can be set.
4654
4650
4655
- ###### <a name="consubscribeoptbinds"></a> 4.2.17 .2.1 `binds`
4651
+ ###### <a name="consubscribeoptbinds"></a> 4.2.16 .2.1 `binds`
4656
4652
4657
4653
```
4658
4654
Object binds
@@ -4661,7 +4657,7 @@ Object binds
4661
4657
An array (bind by position) or object (bind by name) containing the
4662
4658
bind values to use in the [`sql`](#consubscribeoptsql) property.
4663
4659
4664
- ###### <a name="consubscribeoptcallback"></a> 4.2.17 .2.2 `callback`
4660
+ ###### <a name="consubscribeoptcallback"></a> 4.2.16 .2.2 `callback`
4665
4661
4666
4662
```
4667
4663
function callback(Object message)
@@ -4701,7 +4697,7 @@ The `message` parameter in the notification callback is an object containing the
4701
4697
- [`oracledb.SUBSCR_EVENT_TYPE_OBJ_CHANGE`](#oracledbconstantssubscription) - object-level notifications are being used (Database Change Notification).
4702
4698
- [`oracledb.SUBSCR_EVENT_TYPE_QUERY_CHANGE`](#oracledbconstantssubscription) - query-level notifications are being used (Continuous Query Notification).
4703
4699
4704
- ###### <a name="consubscribeoptclientinitiated"></a> 4.2.17 .2.3 `clientInitiated`
4700
+ ###### <a name="consubscribeoptclientinitiated"></a> 4.2.16 .2.3 `clientInitiated`
4705
4701
4706
4702
```
4707
4703
Boolean clientInitiated
@@ -4717,7 +4713,7 @@ The default is *false*.
4717
4713
4718
4714
This property was added in node-oracledb 4.2. It is available when Oracle Database and the Oracle client libraries are version 19.4 or higher.
4719
4715
4720
- ###### <a name="consubscribeoptgroupingclass"></a> 4.2.17 .2.4 `groupingClass`
4716
+ ###### <a name="consubscribeoptgroupingclass"></a> 4.2.16 .2.4 `groupingClass`
4721
4717
4722
4718
```
4723
4719
Number groupingClass
@@ -4728,7 +4724,7 @@ An integer mask which currently, if set, can only contain the value
4728
4724
this value is set then notifications are grouped by time into a single
4729
4725
notification.
4730
4726
4731
- ###### <a name="consubscribeoptgroupingtype"></a> 4.2.17 .2.5 `groupingType`
4727
+ ###### <a name="consubscribeoptgroupingtype"></a> 4.2.16 .2.5 `groupingType`
4732
4728
4733
4729
```
4734
4730
Number groupingType
4741
4737
[`oracledb.SUBSCR_GROUPING_TYPE_LAST`](#oracledbconstantssubscription)
4742
4738
indicating the last notification in the group should be sent.
4743
4739
4744
- ###### <a name="consubscribeoptgroupingvalue"></a> 4.2.17 .2.6 `groupingValue`
4740
+ ###### <a name="consubscribeoptgroupingvalue"></a> 4.2.16 .2.6 `groupingValue`
4745
4741
4746
4742
```
4747
4743
Number groupingValue
@@ -4753,7 +4749,7 @@ then `groupingValue` can be used to set the number of seconds over
4753
4749
which notifications will be grouped together, invoking `callback`
4754
4750
once. If `groupingClass` is not set, then `groupingValue` is ignored.
4755
4751
4756
- ###### <a name="consubscribeoptipaddress"></a> 4.2.17 .2.7 `ipAddress`
4752
+ ###### <a name="consubscribeoptipaddress"></a> 4.2.16 .2.7 `ipAddress`
4757
4753
4758
4754
```
4759
4755
String ipAddress
@@ -4763,7 +4759,7 @@ A string containing an IPv4 or IPv6 address on which the subscription
4763
4759
should listen to receive notifications. If not specified, then the
4764
4760
Oracle Client library will select an IP address.
4765
4761
4766
- ###### <a name="consubscribeoptnamespace"></a> 4.2.17 .2.8 `namespace`
4762
+ ###### <a name="consubscribeoptnamespace"></a> 4.2.16 .2.8 `namespace`
4767
4763
4768
4764
```
4769
4765
Number namespace
@@ -4778,7 +4774,7 @@ You can use `oracledb.SUBSCR_NAMESPACE_AQ` to get notifications that
4778
4774
Advanced Queuing messages are available to be dequeued, see
4779
4775
[Advanced Queuing Notifications](#aqnotifications).
4780
4776
4781
- ###### <a name="consubscribeoptoperations"></a> 4.2.17 .2.9 `operations`
4777
+ ###### <a name="consubscribeoptoperations"></a> 4.2.16 .2.9 `operations`
4782
4778
4783
4779
```
4784
4780
Number operations
@@ -4788,7 +4784,7 @@ An integer mask containing one or more of the operation type
4788
4784
[`oracledb.CQN_OPCODE_*`](#oracledbconstantscqn) constants to indicate
4789
4785
what types of database change should generation notifications.
4790
4786
4791
- ###### <a name="consubscribeoptport"></a> 4.2.17 .2.10 `port`
4787
+ ###### <a name="consubscribeoptport"></a> 4.2.16 .2.10 `port`
4792
4788
4793
4789
```
4794
4790
Number port
@@ -4798,7 +4794,7 @@ The port number on which the subscription should listen to receive
4798
4794
notifications. If not specified, then the Oracle Client library will
4799
4795
select a port number.
4800
4796
4801
- ###### <a name="consubscribeoptqos"></a> 4.2.17 .2.11 `qos`
4797
+ ###### <a name="consubscribeoptqos"></a> 4.2.16 .2.11 `qos`
4802
4798
4803
4799
```
4804
4800
Number qos
@@ -4807,21 +4803,21 @@ Number qos
4807
4803
An integer mask containing one or more of the quality of service
4808
4804
[`oracledb.SUBSCR_QOS_*`](#oracledbconstantssubscription) constants.
4809
4805
4810
- ###### <a name="consubscribeoptsql"></a> 4.2.17 .2.12 `sql`
4806
+ ###### <a name="consubscribeoptsql"></a> 4.2.16 .2.12 `sql`
4811
4807
4812
4808
```
4813
4809
String sql
4814
4810
```
4815
4811
4816
4812
The SQL query string to use for notifications.
4817
4813
4818
- ###### <a name="consubscribeopttimeout"></a> 4.2.17 .2.13 `timeout`
4814
+ ###### <a name="consubscribeopttimeout"></a> 4.2.16 .2.13 `timeout`
4819
4815
4820
4816
The number of seconds the subscription should remain active. Once
4821
4817
this length of time has been reached, the subscription is
4822
4818
automatically unregistered and a deregistration notification is sent.
4823
4819
4824
- ##### <a name="consubscribecallback"></a> 4.2.17 .3 `subscribe()`: Callback Function
4820
+ ##### <a name="consubscribecallback"></a> 4.2.16 .3 `subscribe()`: Callback Function
4825
4821
4826
4822
##### Prototype
4827
4823
@@ -4838,7 +4834,7 @@ Callback function parameter | Description
4838
4834
4839
4835
The `result` callback parameter was added in node-oracledb 4.0.
4840
4836
4841
- #### <a name="constartup"></a> 4.2.18 `connection.startup()`
4837
+ #### <a name="constartup"></a> 4.2.17 `connection.startup()`
4842
4838
4843
4839
##### Prototype
4844
4840
@@ -4874,24 +4870,24 @@ See [Database Start Up and Shut Down](#startupshutdown).
4874
4870
4875
4871
This method was added in node-oracledb 5.0.
4876
4872
4877
- ##### <a name="constartupoptions"></a> 4.2.18 .1 `startup()`: options
4873
+ ##### <a name="constartupoptions"></a> 4.2.17 .1 `startup()`: options
4878
4874
4879
- ##### <a name="constartupoptionsforce"></a> 4.2.18 .1.1.1 `force`
4875
+ ##### <a name="constartupoptionsforce"></a> 4.2.17 .1.1.1 `force`
4880
4876
4881
4877
Shuts down a running database using
4882
4878
[`oracledb.SHUTDOWN_MODE_ABORT`](#oracledbconstantsshutdown) before restarting
4883
4879
the database instance. The next database start up may require instance recovery.
4884
4880
The default for `force` is *false*.
4885
4881
4886
- ##### <a name="constartupoptionspfile"></a> 4.2.18 .1.1.2 `pfile`
4882
+ ##### <a name="constartupoptionspfile"></a> 4.2.17 .1.1.2 `pfile`
4887
4883
4888
4884
After the database is started, access is restricted to users who have the CREATE_SESSION and RESTRICTED SESSION privileges. The default is *false*.
4889
4885
4890
- ##### <a name="constartupoptionsrestrict"></a> 4.2.18 .1.1.3 `restrict`
4886
+ ##### <a name="constartupoptionsrestrict"></a> 4.2.17 .1.1.3 `restrict`
4891
4887
4892
4888
The path and filename for a local text file containing [Oracle Database initialization parameters][171]. If `pfile` is not set, then the database server-side parameter file is used.
4893
4889
4894
- ##### <a name="constartupcallback"></a> 4.2.18 .2 `startup()`: Callback Function
4890
+ ##### <a name="constartupcallback"></a> 4.2.17 .2 `startup()`: Callback Function
4895
4891
4896
4892
##### Prototype
4897
4893
@@ -4905,7 +4901,7 @@ Callback function parameter | Description
4905
4901
----------------------------|-------------
4906
4902
*Error error* | If `startup()` succeeds, `error` is NULL. If an error occurs, then `error` contains the [error message](#errorobj).
4907
4903
4908
- #### <a name="conunsubscribe"></a> 4.2.19 `connection.unsubscribe()`
4904
+ #### <a name="conunsubscribe"></a> 4.2.18 `connection.unsubscribe()`
4909
4905
4910
4906
##### Prototype
4911
4907
@@ -5864,8 +5860,9 @@ cache](#connpoolcache).
5864
5860
If `pool.close()` is called while the pool is already closed, draining, or
5865
5861
[reconfiguring](#poolreconfigure), then an error will be thrown.
5866
5862
5867
- This method was added to node-oracledb 1.9, replacing the equivalent
5868
- alias `pool.terminate()`.
5863
+ This method was added to node-oracledb 1.9, replacing the obsolete equivalent
5864
+ alias `pool.terminate()` which will be removed in a future version of
5865
+ node-oracledb.
5869
5866
5870
5867
The `drainTime` parameter was added in node-oracledb 3.0.
5871
5868
@@ -6037,7 +6034,7 @@ is *false*.
6037
6034
6038
6035
See [Connection Pool Monitoring](#connpoolmonitor).
6039
6036
6040
- This function was added in node-oracledb 5.2. The older, equivalent function
6037
+ This function was added in node-oracledb 5.2. The obsolete function
6041
6038
`_logStats()` can still be used, but it will be removed in a future version of
6042
6039
node-oracledb.
6043
6040
0 commit comments