Skip to content

Commit 3100f2b

Browse files
committed
Small doc tweaks for obsolete functions
1 parent 4dd5cc4 commit 3100f2b

File tree

1 file changed

+66
-69
lines changed

1 file changed

+66
-69
lines changed

doc/api.md

Lines changed: 66 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ For installation information, see the [Node-oracledb Installation Instructions][
177177
- 4.2 [Connection Methods](#connectionmethods)
178178
- 4.2.1 [`break()`](#break)
179179
- 4.2.2 [`changePassword()`](#changepassword)
180-
- 4.2.3 [`close()`](#connectionclose)
180+
- 4.2.3 [`close()`](#connectionclose), [`release()`](#connectionclose)
181181
- 4.2.4 [`commit()`](#commit)
182182
- 4.2.5 [`createLob()`](#connectioncreatelob)
183183
- 4.2.6 [`execute()`](#execute)
@@ -227,35 +227,34 @@ For installation information, see the [Node-oracledb Installation Instructions][
227227
- 4.2.11 [`getStatementInfo()`](#getstmtinfo)
228228
- 4.2.12 [`ping()`](#connectionping)
229229
- 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)
259258
5. [AqQueue Class](#aqqueueclass)
260259
- 5.1 [AqQueue Properties](#aqqueueproperties)
261260
- 5.1.1 [`name`](#aqqueuename)
@@ -2157,7 +2156,7 @@ Monitoring](#connpoolmonitor).
21572156

21582157
The default value is *false*.
21592158

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
21612160
`_enableStats` can still be used, but it will be removed in a future version of
21622161
node-oracledb.
21632162

@@ -3349,7 +3348,7 @@ This method was added in node-oracledb 2.2.
33493348
----------------------------|-------------
33503349
*Error error* | If `changePassword()` succeeds, `error` is NULL. If an error occurs, then `error` contains the [error message](#errorobj).
33513350

3352-
#### <a name="connectionclose"></a> 4.2.3 `connection.close()`
3351+
#### <a name="connectionclose"></a> <a name="release"></a> 4.2.3 `connection.close()`
33533352

33543353
##### Prototype
33553354

@@ -3379,8 +3378,9 @@ make the connection unusable, then `close()` will drop that connection
33793378
from the connection pool so a future pooled `getConnection()` call
33803379
that grows the pool will create a new, valid connection.
33813380

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.
33843384

33853385
##### Parameters
33863386

@@ -4490,11 +4490,7 @@ This method was added in node-oracledb 1.8.
44904490

44914491
See [execute()](#execute).
44924492

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()`
44984494

44994495
##### Prototype
45004496

@@ -4524,7 +4520,7 @@ connection.
45244520
----------------------------|-------------
45254521
*Error error* | If `rollback()` succeeds, `error` is NULL. If an error occurs, then `error` contains the [error message](#errorobj).
45264522

4527-
#### <a name="conshutdown"></a> 4.2.16 `connection.shutdown()`
4523+
#### <a name="conshutdown"></a> 4.2.15 `connection.shutdown()`
45284524

45294525
##### Prototype
45304526

@@ -4558,7 +4554,7 @@ See [Database Start Up and Shut Down](#startupshutdown).
45584554

45594555
This method was added in node-oracledb 5.0.
45604556

4561-
##### <a name="conshutdownmode"></a> 4.2.16.1 `shutdown()`: shutdownMode
4557+
##### <a name="conshutdownmode"></a> 4.2.15.1 `shutdown()`: shutdownMode
45624558

45634559
```
45644560
Number shutdownMode
@@ -4578,7 +4574,7 @@ need to be called a second time.
45784574
Only the second invocation of `connection.shutdown()` should use
45794575
`oracledb.SHUTDOWN_MODE_FINAL`.
45804576

4581-
##### <a name="conshutdowncallback"></a> 4.2.16.2 `shutdown()`: Callback Function
4577+
##### <a name="conshutdowncallback"></a> 4.2.15.2 `shutdown()`: Callback Function
45824578

45834579
```
45844580
function(Error error)
@@ -4590,7 +4586,7 @@ Callback function parameter | Description
45904586
----------------------------|-------------
45914587
*Error error* | If `shutdown()` succeeds, `error` is NULL. If an error occurs, then `error` contains the [error message](#errorobj).
45924588

4593-
#### <a name="consubscribe"></a> 4.2.17 `connection.subscribe()`
4589+
#### <a name="consubscribe"></a> 4.2.16 `connection.subscribe()`
45944590

45954591
##### Prototype
45964592

@@ -4634,7 +4630,7 @@ added in node-oracledb 4.0
46344630

46354631
The [`result`](#consubscribecallback) callback parameter was added in node-oracledb 4.0.
46364632

4637-
##### <a name="consubscribename"></a> 4.2.17.1 `subscribe()`: Name
4633+
##### <a name="consubscribename"></a> 4.2.16.1 `subscribe()`: Name
46384634

46394635
```
46404636
String name
@@ -4644,15 +4640,15 @@ For Continuous Query Notification this is an arbitrary name given to
46444640
the subscription. For Advanced Queuing notifications this must be the
46454641
queue name.
46464642

4647-
##### <a name="consubscribeoptions"></a> 4.2.17.2 `subscribe()`: Options
4643+
##### <a name="consubscribeoptions"></a> 4.2.16.2 `subscribe()`: Options
46484644

46494645
```
46504646
Object options
46514647
```
46524648

46534649
The options that control the subscription. The following properties can be set.
46544650

4655-
###### <a name="consubscribeoptbinds"></a> 4.2.17.2.1 `binds`
4651+
###### <a name="consubscribeoptbinds"></a> 4.2.16.2.1 `binds`
46564652

46574653
```
46584654
Object binds
@@ -4661,7 +4657,7 @@ Object binds
46614657
An array (bind by position) or object (bind by name) containing the
46624658
bind values to use in the [`sql`](#consubscribeoptsql) property.
46634659

4664-
###### <a name="consubscribeoptcallback"></a> 4.2.17.2.2 `callback`
4660+
###### <a name="consubscribeoptcallback"></a> 4.2.16.2.2 `callback`
46654661

46664662
```
46674663
function callback(Object message)
@@ -4701,7 +4697,7 @@ The `message` parameter in the notification callback is an object containing the
47014697
- [`oracledb.SUBSCR_EVENT_TYPE_OBJ_CHANGE`](#oracledbconstantssubscription) - object-level notifications are being used (Database Change Notification).
47024698
- [`oracledb.SUBSCR_EVENT_TYPE_QUERY_CHANGE`](#oracledbconstantssubscription) - query-level notifications are being used (Continuous Query Notification).
47034699

4704-
###### <a name="consubscribeoptclientinitiated"></a> 4.2.17.2.3 `clientInitiated`
4700+
###### <a name="consubscribeoptclientinitiated"></a> 4.2.16.2.3 `clientInitiated`
47054701

47064702
```
47074703
Boolean clientInitiated
@@ -4717,7 +4713,7 @@ The default is *false*.
47174713

47184714
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.
47194715

4720-
###### <a name="consubscribeoptgroupingclass"></a> 4.2.17.2.4 `groupingClass`
4716+
###### <a name="consubscribeoptgroupingclass"></a> 4.2.16.2.4 `groupingClass`
47214717

47224718
```
47234719
Number groupingClass
@@ -4728,7 +4724,7 @@ An integer mask which currently, if set, can only contain the value
47284724
this value is set then notifications are grouped by time into a single
47294725
notification.
47304726

4731-
###### <a name="consubscribeoptgroupingtype"></a> 4.2.17.2.5 `groupingType`
4727+
###### <a name="consubscribeoptgroupingtype"></a> 4.2.16.2.5 `groupingType`
47324728

47334729
```
47344730
Number groupingType
@@ -4741,7 +4737,7 @@ or
47414737
[`oracledb.SUBSCR_GROUPING_TYPE_LAST`](#oracledbconstantssubscription)
47424738
indicating the last notification in the group should be sent.
47434739

4744-
###### <a name="consubscribeoptgroupingvalue"></a> 4.2.17.2.6 `groupingValue`
4740+
###### <a name="consubscribeoptgroupingvalue"></a> 4.2.16.2.6 `groupingValue`
47454741

47464742
```
47474743
Number groupingValue
@@ -4753,7 +4749,7 @@ then `groupingValue` can be used to set the number of seconds over
47534749
which notifications will be grouped together, invoking `callback`
47544750
once. If `groupingClass` is not set, then `groupingValue` is ignored.
47554751

4756-
###### <a name="consubscribeoptipaddress"></a> 4.2.17.2.7 `ipAddress`
4752+
###### <a name="consubscribeoptipaddress"></a> 4.2.16.2.7 `ipAddress`
47574753

47584754
```
47594755
String ipAddress
@@ -4763,7 +4759,7 @@ A string containing an IPv4 or IPv6 address on which the subscription
47634759
should listen to receive notifications. If not specified, then the
47644760
Oracle Client library will select an IP address.
47654761

4766-
###### <a name="consubscribeoptnamespace"></a> 4.2.17.2.8 `namespace`
4762+
###### <a name="consubscribeoptnamespace"></a> 4.2.16.2.8 `namespace`
47674763

47684764
```
47694765
Number namespace
@@ -4778,7 +4774,7 @@ You can use `oracledb.SUBSCR_NAMESPACE_AQ` to get notifications that
47784774
Advanced Queuing messages are available to be dequeued, see
47794775
[Advanced Queuing Notifications](#aqnotifications).
47804776

4781-
###### <a name="consubscribeoptoperations"></a> 4.2.17.2.9 `operations`
4777+
###### <a name="consubscribeoptoperations"></a> 4.2.16.2.9 `operations`
47824778

47834779
```
47844780
Number operations
@@ -4788,7 +4784,7 @@ An integer mask containing one or more of the operation type
47884784
[`oracledb.CQN_OPCODE_*`](#oracledbconstantscqn) constants to indicate
47894785
what types of database change should generation notifications.
47904786

4791-
###### <a name="consubscribeoptport"></a> 4.2.17.2.10 `port`
4787+
###### <a name="consubscribeoptport"></a> 4.2.16.2.10 `port`
47924788

47934789
```
47944790
Number port
@@ -4798,7 +4794,7 @@ The port number on which the subscription should listen to receive
47984794
notifications. If not specified, then the Oracle Client library will
47994795
select a port number.
48004796

4801-
###### <a name="consubscribeoptqos"></a> 4.2.17.2.11 `qos`
4797+
###### <a name="consubscribeoptqos"></a> 4.2.16.2.11 `qos`
48024798

48034799
```
48044800
Number qos
@@ -4807,21 +4803,21 @@ Number qos
48074803
An integer mask containing one or more of the quality of service
48084804
[`oracledb.SUBSCR_QOS_*`](#oracledbconstantssubscription) constants.
48094805

4810-
###### <a name="consubscribeoptsql"></a> 4.2.17.2.12 `sql`
4806+
###### <a name="consubscribeoptsql"></a> 4.2.16.2.12 `sql`
48114807

48124808
```
48134809
String sql
48144810
```
48154811

48164812
The SQL query string to use for notifications.
48174813

4818-
###### <a name="consubscribeopttimeout"></a> 4.2.17.2.13 `timeout`
4814+
###### <a name="consubscribeopttimeout"></a> 4.2.16.2.13 `timeout`
48194815

48204816
The number of seconds the subscription should remain active. Once
48214817
this length of time has been reached, the subscription is
48224818
automatically unregistered and a deregistration notification is sent.
48234819

4824-
##### <a name="consubscribecallback"></a> 4.2.17.3 `subscribe()`: Callback Function
4820+
##### <a name="consubscribecallback"></a> 4.2.16.3 `subscribe()`: Callback Function
48254821

48264822
##### Prototype
48274823

@@ -4838,7 +4834,7 @@ Callback function parameter | Description
48384834

48394835
The `result` callback parameter was added in node-oracledb 4.0.
48404836

4841-
#### <a name="constartup"></a> 4.2.18 `connection.startup()`
4837+
#### <a name="constartup"></a> 4.2.17 `connection.startup()`
48424838

48434839
##### Prototype
48444840

@@ -4874,24 +4870,24 @@ See [Database Start Up and Shut Down](#startupshutdown).
48744870

48754871
This method was added in node-oracledb 5.0.
48764872

4877-
##### <a name="constartupoptions"></a> 4.2.18.1 `startup()`: options
4873+
##### <a name="constartupoptions"></a> 4.2.17.1 `startup()`: options
48784874

4879-
##### <a name="constartupoptionsforce"></a> 4.2.18.1.1.1 `force`
4875+
##### <a name="constartupoptionsforce"></a> 4.2.17.1.1.1 `force`
48804876

48814877
Shuts down a running database using
48824878
[`oracledb.SHUTDOWN_MODE_ABORT`](#oracledbconstantsshutdown) before restarting
48834879
the database instance. The next database start up may require instance recovery.
48844880
The default for `force` is *false*.
48854881

4886-
##### <a name="constartupoptionspfile"></a> 4.2.18.1.1.2 `pfile`
4882+
##### <a name="constartupoptionspfile"></a> 4.2.17.1.1.2 `pfile`
48874883

48884884
After the database is started, access is restricted to users who have the CREATE_SESSION and RESTRICTED SESSION privileges. The default is *false*.
48894885

4890-
##### <a name="constartupoptionsrestrict"></a> 4.2.18.1.1.3 `restrict`
4886+
##### <a name="constartupoptionsrestrict"></a> 4.2.17.1.1.3 `restrict`
48914887

48924888
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.
48934889

4894-
##### <a name="constartupcallback"></a> 4.2.18.2 `startup()`: Callback Function
4890+
##### <a name="constartupcallback"></a> 4.2.17.2 `startup()`: Callback Function
48954891

48964892
##### Prototype
48974893

@@ -4905,7 +4901,7 @@ Callback function parameter | Description
49054901
----------------------------|-------------
49064902
*Error error* | If `startup()` succeeds, `error` is NULL. If an error occurs, then `error` contains the [error message](#errorobj).
49074903

4908-
#### <a name="conunsubscribe"></a> 4.2.19 `connection.unsubscribe()`
4904+
#### <a name="conunsubscribe"></a> 4.2.18 `connection.unsubscribe()`
49094905

49104906
##### Prototype
49114907

@@ -5864,8 +5860,9 @@ cache](#connpoolcache).
58645860
If `pool.close()` is called while the pool is already closed, draining, or
58655861
[reconfiguring](#poolreconfigure), then an error will be thrown.
58665862

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.
58695866

58705867
The `drainTime` parameter was added in node-oracledb 3.0.
58715868

@@ -6037,7 +6034,7 @@ is *false*.
60376034

60386035
See [Connection Pool Monitoring](#connpoolmonitor).
60396036

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
60416038
`_logStats()` can still be used, but it will be removed in a future version of
60426039
node-oracledb.
60436040

0 commit comments

Comments
 (0)