code: function buildWhere (name, value, alias) {
      return name === 'relation'
          ? this.buildWhereRelation(name, value)
          : this.buildWhereModel(name, value, alias)
  }
docs: @function buildWhere
  
  build where clause from where argument
  
  @param {string} name
  @param {array|boolean|object|string} value
  @param {string|undefined} alias
  
  @throws {Error}