Skip to content

Commit 4c43d72

Browse files
committed
Update README for node-oracledb 1.0
1 parent 7e56902 commit 4c43d72

File tree

1 file changed

+53
-66
lines changed

1 file changed

+53
-66
lines changed

README.md

Lines changed: 53 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,45 @@
1-
# node-oracledb version 0.7
1+
# node-oracledb version 1.0
22

33
## <a name="about"></a> 1. About node-oracledb
44

55
The Oracle Database Node.js driver powers high performance
66
Node.js applications.
77

8-
Node-oracledb 0.7 supports basic and advanced Oracle features, including:
9-
10-
- SQL and PL/SQL Execution
11-
- Fetching of large result sets
12-
- REF CURSOR support
13-
- Query results as JavaScript objects or array
14-
- Binding using JavaScript objects or arrays
15-
- Conversion between JavaScript and Oracle types
16-
- Transaction Management
17-
- Connection Pooling
18-
- [Database Resident Connection Pooling](http://docs.oracle.com/database/121/ADFNS/adfns_perf_scale.htm#ADFNS228) (DRCP)
19-
- [External Authentication](http://docs.oracle.com/database/121/DBSEG/authentication.htm#DBSEG99840)
20-
- [Statement Caching](http://docs.oracle.com/database/121/LNOCI/oci09adv.htm#i471377)
21-
- [Client Result Caching](http://docs.oracle.com/database/121/ADFNS/adfns_perf_scale.htm#ADFNS464)
22-
- [End-to-end tracing](http://docs.oracle.com/database/121/TGSQL/tgsql_trace.htm#CHDBDGIJ)
23-
- High Availability Features
24-
- [Fast Application Notification](http://docs.oracle.com/database/121/ADFNS/adfns_avail.htm#ADFNS538) (FAN)
25-
- [Runtime Load Balancing](http://docs.oracle.com/database/121/ADFNS/adfns_perf_scale.htm#ADFNS515) (RLB)
26-
- [Transparent Application Failover](http://docs.oracle.com/database/121/ADFNS/adfns_avail.htm#ADFNS534) (TAF)
27-
28-
Node-oracledb 0.7 is a preview release. We are actively working on
29-
adding features such as LOB support.
30-
31-
Share your feedback at the Oracle Technology Network
32-
[Node.js discussion forum](https://community.oracle.com/community/database/developer-tools/node_js/content)
33-
so we can incorporate any fixes and "must-haves" into a 1.0 release
34-
soon. Issues with node-oracledb can also be reported
35-
[here](https://github.com/oracle/node-oracledb/issues).
8+
Node-oracledb connects Node.js 0.10, Node.js 0.12, and io.js to
9+
Oracle Database.
3610

37-
The driver is maintained by Oracle Corp.
11+
This is an open source project maintained by Oracle Corp.
3812

3913
The node-oracledb home page is on the
4014
[Oracle Technology Network](http://www.oracle.com/technetwork/database/database-technologies/node_js/index.html).
4115

42-
### Example: Simple SELECT statement implementation in node-oracledb
16+
### Node-oracledb supports:
17+
18+
- [SQL and PL/SQL execution](https://github.com/oracle/node-oracledb/blob/master/doc/api.md#sqlexecution)
19+
- [Fetching of large result sets](https://github.com/oracle/node-oracledb/blob/master/doc/api.md#resultsethandling)
20+
- [REF CURSORs](https://github.com/oracle/node-oracledb/blob/master/doc/api.md#refcursors)
21+
- [Large Objects: CLOBs and BLOBs](https://github.com/oracle/node-oracledb/blob/master/doc/api.md#lobhandling)
22+
- [Query results as JavaScript objects or array ](https://github.com/oracle/node-oracledb/blob/master/doc/api.md#queryoutputformats)
23+
- [Smart mapping between JavaScript and Oracle types with manual override available](https://github.com/oracle/node-oracledb/blob/master/doc/api.md#typemap)
24+
- [Data binding using JavaScript objects or arrays](https://github.com/oracle/node-oracledb/blob/master/doc/api.md#bind)
25+
- [Transaction Management](https://github.com/oracle/node-oracledb/blob/master/doc/api.md#transactionmgt)
26+
- [Inbuilt Connection Pooling](https://github.com/oracle/node-oracledb/blob/master/doc/api.md#connpooling)
27+
- [Database Resident Connection Pooling (DRCP)](https://github.com/oracle/node-oracledb/blob/master/doc/api.md#drcp)
28+
- [External Authentication](https://github.com/oracle/node-oracledb/blob/master/doc/api.md#extauth)
29+
- [Row Prefetching](https://github.com/oracle/node-oracledb/blob/master/doc/api.md#rowprefetching)
30+
- [Statement Caching](https://github.com/oracle/node-oracledb/blob/master/doc/api.md#stmtcache)
31+
- [Client Result Caching](http://docs.oracle.com/database/121/ADFNS/adfns_perf_scale.htm#ADFNS464)
32+
- [End-to-end tracing](http://docs.oracle.com/database/121/TGSQL/tgsql_trace.htm#CHDBDGIJ)
33+
- High Availability Features
34+
- [Fast Application Notification (FAN)](http://docs.oracle.com/database/121/ADFNS/adfns_avail.htm#ADFNS538)
35+
- [Runtime Load Balancing (RLB)](http://docs.oracle.com/database/121/ADFNS/adfns_perf_scale.htm#ADFNS515)
36+
- [Transparent Application Failover (TAF)](http://docs.oracle.com/database/121/ADFNS/adfns_avail.htm#ADFNS534)
37+
38+
We are actively working on supporting the best Oracle Database
39+
features, and on functionality requests from
40+
[users involved in the project](https://github.com/oracle/node-oracledb/issues).
41+
42+
### A simple query example:
4343

4444
```javascript
4545
var oracledb = require('oracledb');
@@ -52,21 +52,14 @@ oracledb.getConnection(
5252
},
5353
function(err, connection)
5454
{
55-
if (err) {
56-
console.error(err.message);
57-
return;
58-
}
55+
if (err) { console.error(err.message); return; }
56+
5957
connection.execute(
60-
"SELECT department_id, department_name "
61-
+ "FROM departments "
62-
+ "WHERE department_id = :did",
63-
[180],
58+
"SELECT department_id, department_name FROM departments WHERE department_id = :did",
59+
[180], // bind value for :did
6460
function(err, result)
6561
{
66-
if (err) {
67-
console.error(err.message);
68-
return;
69-
}
62+
if (err) { console.error(err.message); return; }
7063
console.log(result.rows);
7164
});
7265
});
@@ -78,34 +71,40 @@ With Oracle's sample HR schema, the output is:
7871
[ [ 180, 'Construction' ] ]
7972
```
8073

81-
There are more examples in the [examples](examples) directory.
74+
## <a name="examples"></a> 2. Examples
75+
76+
There are examples in the [examples](https://github.com/oracle/node-oracledb/tree/master/examples) directory.
8277

83-
## <a name="installation"></a> 2. Installation
78+
## <a name="installation"></a> 3. Installation
8479

8580
The basic install steps are:
8681

87-
- Install the small, free [Oracle Instant Client](http://www.oracle.com/technetwork/database/features/instant-client/index-100365.html) libraries if your database is remote, or have a local database such as the free [Oracle XE](http://www.oracle.com/technetwork/database/database-technologies/express-edition/overview/index.html) release.
82+
- Install the small, free [Oracle Instant Client](http://www.oracle.com/technetwork/database/features/instant-client/index-100365.html) libraries if your database is remote. Or use a locally installed database such as the free [Oracle XE](http://www.oracle.com/technetwork/database/database-technologies/express-edition/overview/index.html) release.
8883
- Run `npm install oracledb` to install from the NPM registry.
8984

90-
See [INSTALL](INSTALL.md) for details.
85+
See [INSTALL](https://github.com/oracle/node-oracledb/tree/master/INSTALL.md) for details.
9186

92-
## <a name="doc"></a> 3. Documentation
87+
## <a name="doc"></a> 4. Documentation
9388

94-
See [Documentation for the Oracle Database Node.js Driver](doc/api.md)
89+
See [Documentation for the Oracle Database Node.js Driver](https://github.com/oracle/node-oracledb/tree/master/doc/api.md).
9590

96-
## <a name="changes"></a> 4. Changes
91+
## <a name="changes"></a> 5. Changes
9792

98-
See [CHANGELOG](CHANGELOG.md)
93+
See [CHANGELOG](https://github.com/oracle/node-oracledb/tree/master/CHANGELOG.md)
9994

10095
*Note* there were two small, backward-compatibility breaking attribute name changes in node-oracledb 0.5.
10196

102-
## <a name="contrib"></a> 5. Contributing
97+
## <a name="testing"></a> 6. Testsuite
98+
99+
To run the included testsuite see [test/README](https://github.com/oracle/node-oracledb/tree/master/test/README.md).
100+
101+
## <a name="contrib"></a> 7. Contributing
103102

104103
Node-oracledb is an open source project. See
105-
[CONTRIBUTING](CONTRIBUTING.md)
104+
[CONTRIBUTING](https://github.com/oracle/node-oracledb/tree/master/CONTRIBUTING.md)
106105
for details.
107106

108-
## <a name="license"></a> 6. Licence
107+
## <a name="license"></a> 8. License
109108

110109
Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
111110

@@ -121,15 +120,3 @@ WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
121120

122121
See the License for the specific language governing permissions and
123122
limitations under the License.
124-
125-
## <a name="testing"></a> 7. Running tests
126-
127-
The basic steps for running tests are:
128-
129-
- Install the driver `npm install oracledb`
130-
- Change directory `cd node_modules/oracledb`
131-
- Run `npm install mocha should async` to install dependent Node.js modules required for testing.
132-
- Set the correct credential information in `test/dbConfig.js`
133-
- Run `npm test` to start the test suite.
134-
135-
See [test/README](test/README.md) for details.

0 commit comments

Comments
 (0)