select = async (tbl, whereObj, selectopts = Object.create(null)) => {
  const { where, values } = mkWhere(whereObj);
  const schema = selectopts.schema || getTenantSchema();
  const sql = `SELECT ${
    selectopts.fields ? selectopts.fields.join(", ") : `*`
  } FROM "${schema}"."${sqlsanitize(tbl)}" ${where} ${mkSelectOptions(
    selectopts,
    values,
    false
  )}`;
  sql_log(sql, values);
  const tq = await getMyClient(selectopts).query(sql, values);

  return tq.rows;
}
Execute Select statement
@param {string} tbl - table name
@param {object} whereObj - where object
@param {object} [selectopts = {}] - select options
@returns {Promise<*>} return rows