Skip to content

mcroiban/node-db-nuodb

Repository files navigation

NuoDB - node.js

Build Status

This module builds a native Google V8 C++ binding to let you easily integrate your node.js web applications with NuoDB.

Requirements

make g++

Install

$ npm install db-nuodb

Example

var nuodb = require('db-nuodb');
new nuodb.Database({
    hostname: 'localhost',
    user: 'root',
    password: 'password',
    database: 'node'
}).connect(function(error) {
    if (error) {
        return console.log("CONNECTION ERROR: " + error);
    }

    this.query().select('*').from('users').execute(function(error, rows) {
        if (error) {
            return console.log('ERROR: ' + error);
        }
        console.log(rows.length + ' ROWS');
    });
});

License

NuoDB License