Skip to content

tvincentNuoDB/node-db-nuodb

 
 

Repository files navigation

NuoDB - Node.js

Build Status

This module contains the community driven NuoDB Node.js driver built from native Google V8 C++ binding to let you easily integrate your Node.js web applications with NuoDB. This is a community driven driver with limited support and testing from NuoDB.

Requirements

Node.js -- one of the following

GNU Compiler Collection -- both of the following

  • make
  • g++

NuoDB -- one of the following

If you haven't done so already, Download and Install NuoDB.

Install

For distribution installations use:

$ npm install db-nuodb

Alternatively (e.g. if npm is not available), a tarball can be downloaded from GitHub and installed with node-gyp:

$ curl -L https://github.com/nuodb/node-db-nuodb/archive/master.tar.gz | tar xz
$ cd node-db-nuodb*
$ make install
$ # The folder node-db-nuodb* can be safely removed now.

Example

Here is basic use of the driver that includes connecting to a NuoDB server, then printing the host name and server version:

var nuodb = require('db-nuodb');
new nuodb.Database({
    hostname: 'localhost',
    user: 'dba',
    password: 'goalie',
    database: 'test',
    schema: 'hockey'
}).on('error', function(error) {
    console.log('ERROR: ' + error);
}).on('ready', function(server) {
    console.log('Connected to ' + server.hostname + ' (' + server.version + ')');
}).connect();

For further information on getting started with NuoDB, please refer to the Documentation.

License

NuoDB License

About

NuoDB database bindings for Node.js

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 70.3%
  • JavaScript 24.9%
  • Python 3.5%
  • Makefile 1.3%