docs: function generateWhereClause(constraints, queryValues = []) {
    if (!constraints.length) {
      return {
        queryValues,
        whereClause: ''
      }
    }
  
    if (constraints.length === 1) {
      return {
        queryValues,
        whereClause: ' WHERE ' + generateSqlKeyVals(' AND ', constraints[0], queryValues, true)
      }
    }
  
    const whereClause = ' WHERE ' + constraints
      .map(constr => {
        return `(${generateSqlKeyVals(' AND ', constr, queryValues, true)})`
      })
      .join(' OR ')
  
    return {
      queryValues,
      whereClause
    }
  }