CQL.js
function(callback){
    var result,
        i;

    if(!files || files.length === 0){
        return callback(null, true);
    }

    output("Processing queries...");

    for(i=0; i<files.length; i++){
        while((result = cqlRegex.exec(files[i])) !== null) {
            batchQueries.push(result[1].replace(/\s+/g, ' ').trim());
        }
    }

    callback(null, true);
}
function(callback){
    var result,
        i;

    if(!files || files.length === 0){
        return callback(null, true);
    }

    output("Processing queries...");

    for(i=0; i<files.length; i++){
        while((result = cqlRegex.exec(files[i])) !== null) {
            batchQueries.push(result[1].replace(/\s+/g, ' ').trim());
        }
    }

    callback(null, true);
}
function ( callback ) { var result , i ; if ( ! files || files . length === 0 ) { return callback ( null , true ) ; } output ( "Processing queries..." ) ; for ( i = 0 ; i < files . length ; i ++ ) { while ( ( result = cqlRegex . exec ( files [ i ] ) ) !== null ) { batchQueries . push ( result [ 1 ] . replace ( / \s+ / g , ' ' ) . trim ( ) ) ; } } callback ( null , true ) ; }
Processes the queries from the files loaded and builds the batch of individual statements to run.
@param  {Function} callback Callback to async with error or success
Processes the queries from the files loaded and builds the batch of individual statements to run .