addRow(...input) {
    this.firstRowWritten = true;
    let row;

    if (input.length > 1 || !input[0] || typeof input[0] !== 'object') {
      row = input;
    } else {
      row = input[0];
    } // write each column


    if (Array.isArray(row)) {
      this.rowToPacketTransform.write(this.columns.map((column, i) => {
        let value = row[i];

        if (this.options.validateBulkLoadParameters) {
          value = column.type.validate(value);
        }

        return value;
      }));
    } else {
      this.rowToPacketTransform.write(this.columns.map(column => {
        let value = row[column.objName];

        if (this.options.validateBulkLoadParameters) {
          value = column.type.validate(value);
        }

        return value;
      }));
    }
  }
/**
   * Adds a row to the bulk insert.
   *
   * ```js
   * bulkLoad.addRow({ first_name: 'Bill', last_name: 'Gates' });
   * ```
   *
   * @param row An object of key/value pairs representing column name (or objName) and value.
   *
   * @deprecated This method is deprecated. Instead of adding rows individually, you should pass
   *   all row objects when calling [[Connection.execBulkLoad]]. This method will be removed in the future.
   */
Adds a row to the bulk insert.

@param row An object of key/value pairs representing column name (or objName) and value.

@deprecated This method is deprecated. Instead of adding rows individually, you should pass
all row objects when calling [[Connection.execBulkLoad]]. This method will be removed in the future.
Adds a row to the bulk insert . @param row An object of key / value pairs representing column name ( or objName ) and value . @deprecated This method is deprecated . Instead of adding rows individually you should pass all row objects when calling [[ Connection . execBulkLoad ]] . This method will be removed in the future .
addRow(...input) {
    this.firstRowWritten = true;
    let row;
    if (input.length > 1 || !input[0] || typeof input[0] !== 'object') {
      row = input;
    } else {
      row = input[0];
    } 
    if (Array.isArray(row)) {
      this.rowToPacketTransform.write(this.columns.map((column, i) => {
        let value = row[i];
        if (this.options.validateBulkLoadParameters) {
          value = column.type.validate(value);
        }
        return value;
      }));
    } else {
      this.rowToPacketTransform.write(this.columns.map(column => {
        let value = row[column.objName];
        if (this.options.validateBulkLoadParameters) {
          value = column.type.validate(value);
        }
        return value;
      }));
    }
  }
addRow ( ... input ) { this . firstRowWritten = true ; let row ; if ( input . length > 1 || ! input [ 0 ] || typeof input [ 0 ] !== 'object' ) { row = input ; } else { row = input [ 0 ] ; } if ( Array . isArray ( row ) ) { this . rowToPacketTransform . write ( this . columns . map ( ( column , i ) => { let value = row [ i ] ; if ( this . options . validateBulkLoadParameters ) { value = column . type . validate ( value ) ; } return value ; } ) ) ; } else { this . rowToPacketTransform . write ( this . columns . map ( column => { let value = row [ column . objName ] ; if ( this . options . validateBulkLoadParameters ) { value = column . type . validate ( value ) ; } return value ; } ) ) ; } }
Adds a row to the bulk insert.
Adds a row to the bulk insert .
// write each column