Node.js add-on (C++) for SiriDB.
node-gyp configure && node-gyp build
const sdbaddon = require('./build/Release/siridb');
var siridb = new sdbaddon.SiriDBClient(
"iris", // database user
"siri", // password
"dbtest", // database name
"localhost", // server address
9000 // server port
);
siridb.connect(err => {
// success: err is null
// error: err is a string with an error message
if (err) {
console.error(`Connection error: ${err}`);
} else {
siridb.close();
}
});
A more complete description of the node.js add-on can be found via the link below.