2.0.2 • Published 10 years ago
db-nuodb v2.0.2
NuoDB - node.js
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');
});
});