CQL.js
function(callback){
    var opts = {};
    output("Connecting to database...");
    //We need to be able to do anything with any keyspace. We just need a db connection. Just send
    //in the hosts, username and password, stripping the keyspace.
    opts.username = process.env.CASS_USER || config.db.username;
    opts.password = process.env.CASS_PASS || config.db.password;
    opts.hosts = config.db.hosts;
    opts.port = config.db.port;

    Cassanova.connect(opts, function(err, result){
        if(err){
            err.hosts = opts.hosts;
        }
        callback(err, result);
    });
}
function(callback){
    var opts = {};
    output("Connecting to database...");
    //We need to be able to do anything with any keyspace. We just need a db connection. Just send
    //in the hosts, username and password, stripping the keyspace.
    opts.username = process.env.CASS_USER || config.db.username;
    opts.password = process.env.CASS_PASS || config.db.password;
    opts.hosts = config.db.hosts;
    opts.port = config.db.port;

    Cassanova.connect(opts, function(err, result){
        if(err){
            err.hosts = opts.hosts;
        }
        callback(err, result);
    });
}
function ( callback ) { var opts = { } ; output ( "Connecting to database..." ) ; //We need to be able to do anything with any keyspace. We just need a db connection. Just send //in the hosts, username and password, stripping the keyspace. opts . username = process . env . CASS_USER || config . db . username ; opts . password = process . env . CASS_PASS || config . db . password ; opts . hosts = config . db . hosts ; opts . port = config . db . port ; Cassanova . connect ( opts , function ( err , result ) { if ( err ) { err . hosts = opts . hosts ; } callback ( err , result ) ; } ) ; }
Starts Cassanova.
@param  {Function} callback Callback to async with error or success
Starts Cassanova .