Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Node.js client for VoltDB

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 examples
Octocat-spinner-32 lib
Octocat-spinner-32 test
Octocat-spinner-32 tools
Octocat-spinner-32 .gitignore
Octocat-spinner-32 README.md
Octocat-spinner-32 package.json
Octocat-spinner-32 voternoui.js
Octocat-spinner-32 writer.js
README.md

VoltDB NodeJS Wire Protocol Driver 0.1.1

Requirements

Node.js 0.6.10 VoltDB 2.1.3

Installation

To use the sample ./voternoui.js, install the required node libraries:

npm install cli
npm install bignumber

Example Application

The example uses the voter example server included in the VoltDB distribution. It is found in VOLTDB_HOME/examples/voter.

  1. Start the server

    ./run.sh server

  2. In a second terminal, run the sample

    node ./voternoui.js [-h voltdb_host] [-c number_of_votes]

No parameters will default to:

node ./voternoui.js -h localhost -c 10000

You may want to set the number of VoltDB sites per host to something interesting in VOLTDB_HOME/examples/voter/deployment.xml. The sites per host value is equivalent to the number of cores that VoltDB will use for the server when you are running a single instance on localhost.

Known Issues

Driver does not currently support varbinary type.

Something went wrong with that request. Please try again.