lib/cargo.js
// push row insert into memory cache
push row insert into memory cache
push row insert into memory cache
push() {
      var arr, i, item, j, len;
      arr = Array.from(arguments);
      assert(arr.length > 0, "blank row can not be accepted.");
      for (i = j = 0, len = arr.length; j < len; i = ++j) {
        item = arr[i];
        if (item instanceof Date) {
          arr[i] = Math.round(item.getTime() / 1000);
        } else if (typeof b === "boolean") {
          arr[i] = Number(b);
        }
      }
      this.cachedRows.push(JSON.stringify(arr));
    }
push ( ) { var arr , i , item , j , len ; arr = Array . from ( arguments ) ; assert ( arr . length > 0 , "blank row can not be accepted." ) ; for ( i = j = 0 , len = arr . length ; j < len ; i = ++ j ) { item = arr [ i ] ; if ( item instanceof Date ) { arr [ i ] = Math . round ( item . getTime ( ) / 1000 ) ; } else if ( typeof b === "boolean" ) { arr [ i ] = Number ( b ) ; } } this . cachedRows . push ( JSON . stringify ( arr ) ) ; }
push row insert into memory cache
push row insert into memory cache