CQL.js
function(callback){

    output("Initializing queries...");

    if(program.keyspace){
        batchQueries.unshift("USE " + program.keyspace + ";");
    }

    if(batchQueries && batchQueries.length > 0){
        output("Running queries...");
        executeQuery(batchQueries.shift(), callback);
    }else{
        callback("No queries to run.", null);
    }
}
function(callback){

    output("Initializing queries...");

    if(program.keyspace){
        batchQueries.unshift("USE " + program.keyspace + ";");
    }

    if(batchQueries && batchQueries.length > 0){
        output("Running queries...");
        executeQuery(batchQueries.shift(), callback);
    }else{
        callback("No queries to run.", null);
    }
}
function ( callback ) { output ( "Initializing queries..." ) ; if ( program . keyspace ) { batchQueries . unshift ( "USE " + program . keyspace + ";" ) ; } if ( batchQueries && batchQueries . length > 0 ) { output ( "Running queries..." ) ; executeQuery ( batchQueries . shift ( ) , callback ) ; } else { callback ( "No queries to run." , null ) ; } }
Initializes the query batch to execute.
@param  {Function} callback Callback to async with error or success
Initializes the query batch to execute .