lib/builder.js
function having(column, operator, value) {
    if (column instanceof Raw && arguments.length === 1) {
      return this._havingRaw(column);
    }

    // Check if the column is a function, in which case it's
    // a having statement wrapped in parens.
    if (typeof column === 'function') {
      return this.havingWrapped(column);
    }

    this._statements.push({
      grouping: 'having',
      type: 'havingBasic',
      column: column,
      operator: operator,
      value: value,
      bool: this._bool()
    });
    return this;
  }
function having(column, operator, value) {
    if (column instanceof Raw && arguments.length === 1) {
      return this._havingRaw(column);
    }

    // Check if the column is a function, in which case it's
    // a having statement wrapped in parens.
    if (typeof column === 'function') {
      return this.havingWrapped(column);
    }

    this._statements.push({
      grouping: 'having',
      type: 'havingBasic',
      column: column,
      operator: operator,
      value: value,
      bool: this._bool()
    });
    return this;
  }
function having ( column , operator , value ) { if ( column instanceof Raw && arguments . length === 1 ) { return this . _havingRaw ( column ) ; } // Check if the column is a function, in which case it's // a having statement wrapped in parens. if ( typeof column === 'function' ) { return this . havingWrapped ( column ) ; } this . _statements . push ( { grouping : 'having' , type : 'havingBasic' , column : column , operator : operator , value : value , bool : this . _bool ( ) } ) ; return this ; }
Adds a `having` clause to the query.
Adds a having clause to the query .