code: function lineToInsert(line) {
    //TODO: use a csv parser here, or write own
    var dataArr = line.split(this.seperator);
    var row;
  
    //insert comma's between VALUES (..), (..), ... , (..)
    if (this.isFirstDataRow) {
      row = '(';
      this.isFirstDataRow = false;
    } else {
      row = ',(';
    }
  
    //build up the row (a, b, ... , c)
    for (var i = 0; i < dataArr.length; i++) {
      if (dataArr[i] === '' || dataArr[i] === 'NULL') {
        row += 'NULL';
      } else {
        //enclose datums in quotes
        row += '"' + dataArr[i] + '"';
      }
  
      //insert comma's between datums
      if (i !== dataArr.length - 1) {
        row += ',';
      }
    }
    row += ')';
  
    return row;
  }
docs: /* helper