GithubHelp home page GithubHelp logo

kuguobing / node-oracledb Goto Github PK

View Code? Open in Web Editor NEW

This project forked from oracle/node-oracledb

0.0 1.0 0.0 247 KB

Oracle Database driver for Node.js

License: Other

Python 1.08% JavaScript 14.03% C 1.22% C++ 83.67%

node-oracledb's Introduction

node-oracledb version 0.2

1. About node-oracledb

The Oracle Database Node.js driver powers high performance Node.js applications.

Node-oracledb 0.2 supports basic and advanced Oracle features, including:

Node-oracledb 0.2 is a preview release. We are actively working on adding features including Windows platform support, LOB support, batch fetching / streaming of large query result sets, and DRCP support.

Share your feedback at the Oracle Technology Network Node.js discussion forum so we can incorporate any fixes and "must-haves" into a 1.0 release soon. Issues with node-oracledb can also be reported here.

The driver is maintained by Oracle Corp.

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

Example: Simple SELECT statement implementation in node-oracledb

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 department_id = :did",
      [180],
      function(err, result)
      {
        if (err) {
          console.error(err.message);
          return;
        }
        console.log(result.rows);
      });
  });

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

[ [ 180, 'Construction' ] ]

There are more examples in the examples directory.

2. Installation

The current release of node-oracledb is available only on GitHub. The basic install steps are:

  • Install the small, free Oracle Instant Client libraries, or have a local database such as the free Oracle XE release.
  • Clone this repository
  • Run npm install

See INSTALL for details.

3. Documentation

See API Documentation

4. Contributing

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

5. Licence

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.

node-oracledb's People

Contributors

cjbj avatar snaugle avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.