CQL.js
function(eQuery, callback){

    output("Executing:\t\t" + eQuery);

    Cassanova.execute(eQuery, function(err) {
        if (err){
            return callback(err, null);
        } else {
            if(batchQueries.length > 0){
                executeQuery(batchQueries.shift(), callback);
            }else{
                callback(null, true);

                process.nextTick(function(){
                    process.exit(1);
                });
            }
        }
    });
}
function(eQuery, callback){

    output("Executing:\t\t" + eQuery);

    Cassanova.execute(eQuery, function(err) {
        if (err){
            return callback(err, null);
        } else {
            if(batchQueries.length > 0){
                executeQuery(batchQueries.shift(), callback);
            }else{
                callback(null, true);

                process.nextTick(function(){
                    process.exit(1);
                });
            }
        }
    });
}
function ( eQuery , callback ) { output ( "Executing:\t\t" + eQuery ) ; Cassanova . execute ( eQuery , function ( err ) { if ( err ) { return callback ( err , null ) ; } else { if ( batchQueries . length > 0 ) { executeQuery ( batchQueries . shift ( ) , callback ) ; } else { callback ( null , true ) ; process . nextTick ( function ( ) { process . exit ( 1 ) ; } ) ; } } } ) ; }
A recursive method, that executes each query.
@param  {String} eQuery The cql string to be executed.
@param  {Function} callback Callback to async with error or success
A recursive method that executes each query .