You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[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)
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:
43
43
44
44
```javascript
45
45
var oracledb =require('oracledb');
@@ -52,21 +52,14 @@ oracledb.getConnection(
52
52
},
53
53
function(err, connection)
54
54
{
55
-
if (err) {
56
-
console.error(err.message);
57
-
return;
58
-
}
55
+
if (err) { console.error(err.message); return; }
56
+
59
57
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
64
60
function(err, result)
65
61
{
66
-
if (err) {
67
-
console.error(err.message);
68
-
return;
69
-
}
62
+
if (err) { console.error(err.message); return; }
70
63
console.log(result.rows);
71
64
});
72
65
});
@@ -78,34 +71,40 @@ With Oracle's sample HR schema, the output is:
78
71
[ [ 180, 'Construction' ] ]
79
72
```
80
73
81
-
There are more examples in the [examples](examples) directory.
74
+
## <aname="examples"></a> 2. Examples
75
+
76
+
There are examples in the [examples](https://github.com/oracle/node-oracledb/tree/master/examples) directory.
82
77
83
-
## <aname="installation"></a> 2. Installation
78
+
## <aname="installation"></a> 3. Installation
84
79
85
80
The basic install steps are:
86
81
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.
88
83
- Run `npm install oracledb` to install from the NPM registry.
89
84
90
-
See [INSTALL](INSTALL.md) for details.
85
+
See [INSTALL](https://github.com/oracle/node-oracledb/tree/master/INSTALL.md) for details.
91
86
92
-
## <aname="doc"></a> 3. Documentation
87
+
## <aname="doc"></a> 4. Documentation
93
88
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).
95
90
96
-
## <aname="changes"></a> 4. Changes
91
+
## <aname="changes"></a> 5. Changes
97
92
98
-
See [CHANGELOG](CHANGELOG.md)
93
+
See [CHANGELOG](https://github.com/oracle/node-oracledb/tree/master/CHANGELOG.md)
99
94
100
95
*Note* there were two small, backward-compatibility breaking attribute name changes in node-oracledb 0.5.
101
96
102
-
## <aname="contrib"></a> 5. Contributing
97
+
## <aname="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).
0 commit comments