AchrafLansari / node-db-nuodb

NuoDB database bindings for Node.js

Home Page:http://nuodb.github.com/node-db-nuodb/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

http://nuodb.github.com/node-db-nuodb/

License:Other


Languages

Language:C++ 70.3%Language:JavaScript 24.9%Language:Python 3.5%Language:Makefile 1.3%