Go to file
Christopher Jones 864d36340e Allow only patch updates to NAN to reduce potential for destablization 2015-11-17 11:33:06 +11:00
doc Update doc about expected error 2015-11-17 11:33:04 +11:00
examples Update URL to reflect changed OTN hierarchy 2015-11-15 08:28:11 +11:00
lib Emit Lob end event before close. Another fix by @bjouhier 2015-09-25 18:22:01 +10:00
src Fix compilation warning seen with recent compilers 2015-11-17 11:33:06 +11:00
test Add missing section numbers to test README and give some font love 2015-11-17 11:33:06 +11:00
.gitignore Update examples for node-oracledb 1.0 2015-08-17 16:03:41 +10:00
.npmignore Add the test suite 2015-07-20 14:33:53 +10:00
CHANGELOG.md Fix compilation warning seen with recent compilers 2015-11-17 11:33:06 +11:00
CONTRIBUTING.md Add new OTN forum links for submitting feedback and discussing node-oracledb 2015-01-20 17:17:09 -08:00
INSTALL.md Link to @bchr02's Windows installation article 2015-11-17 11:33:05 +11:00
LICENSE.md Remove stray characters in commments causing file encoding issues and Windows compilation warnings 2015-09-25 17:17:07 +10:00
README.md Mention C++11 requirement and also mention Node 4 & 5 2015-11-17 11:33:05 +11:00
binding.gyp Added oracledb.oracleClientVersion and connection.oracleServerVersion 2015-10-15 12:46:20 +11:00
index.js Preview release of node-oracledb 2015-01-20 08:51:22 -08:00
package.json Allow only patch updates to NAN to reduce potential for destablization 2015-11-17 11:33:06 +11:00

README.md

node-oracledb version 1.4

1. About node-oracledb

The node-oracledb add-on for Node.js powers high performance Oracle Database applications.

Node-oracledb connects Node.js 0.10, 0.12, 4.2 and 5.0 to Oracle Database.

This is an open source project maintained by Oracle Corp.

The node-oracledb home page is on the Oracle Technology Network.

Node-oracledb supports:

We are actively working on supporting the best Oracle Database features, and on functionality requests from users involved in the project.

A simple query example:

var oracledb = require('oracledb');

oracledb.getConnection(
  {
    user          : "hr",
    password      : "welcome",
    connectString : "localhost/XE"
  },
  function(err, connection)
  {
    if (err) { console.error(err.message); return; }

    connection.execute(
      "SELECT department_id, department_name " +
        "FROM departments " +
        "WHERE manager_id < :id",
      [110],  // bind value for :id
      function(err, result)
      {
        if (err) { console.error(err.message); return; }
        console.log(result.rows);
      });
  });

With Oracle's sample HR schema, the output is:

[ [ 60, 'IT' ], [ 90, 'Executive' ], [ 100, 'Finance' ] ]

2. Examples

There are examples in the examples directory.

3. Installation

The basic install steps are:

  • Install the small, free Oracle Instant Client libraries if your database is remote. Or use a locally installed database such as the free Oracle XE release.
  • Run npm install oracledb to install from the NPM registry.

See INSTALL for details.

4. Documentation

See Documentation for the Oracle Database Node.js Add-on.

5. Changes

See CHANGELOG

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

6. Testsuite

To run the included testsuite see test/README.

7. Contributing

Node-oracledb is an open source project. See CONTRIBUTING for details.

Oracle gratefully acknowledges the contributions to node-oracledb that have been made by the community.

8. License

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

You may not use the identified files except in compliance with the Apache License, Version 2.0 (the "License.")

You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

See the License for the specific language governing permissions and limitations under the License.