Promised Cassandra
Q promise wrapper for Datastax Cassandra driver
Depends on node v6
Install
npm install --save cassandra-driver promised-cassandra
Featured Cassandra driver functions
Everything. It's proxying the Cassandra driver.
But everything is not tested though.
Tested Cassandra driver functions
- execute
- eachRow
Basic usage
// Initiate cassandra connectionconst cassandra = ;// If no connection options are passed, connection will default to localhost// or use CASSANDRA_CONTACT_POINTS environment variable.const database = ;// or if your options comes from a promiseconst database = ; // Execute some CQLdatabase; // Run eachRowdatabase
Some extra functions
// Create a keyspace if it doesn't already exist and start using itdatabase; // Create table if it doesn't already existdatabase