code: func AuthGroupsByName(db XODB, name string) ([]*AuthGroup, error) {
  	var err error
  
  	// sql query
  	const sqlstr = `SELECT ` +
  		`id, name ` +
  		`FROM public.auth_group ` +
  		`WHERE name = $1`
  
  	// run query
  	XOLog(sqlstr, name)
  	q, err := db.Query(sqlstr, name)
  	if err != nil {
  		return nil, err
  	}
  	defer q.Close()
  
  	// load results
  	res := []*AuthGroup{}
  	for q.Next() {
  		ag := AuthGroup{
  			_exists: true,
  		}
  
  		// scan
  		err = q.Scan(&ag.ID, &ag.Name)
  		if err != nil {
  			return nil, err
  		}
  
  		res = append(res, &ag)
  	}
  
  	return res, nil
  }
docs: // AuthGroupsByName retrieves a row from 'public.auth_group' as a AuthGroup.
  //
  // Generated from index 'auth_group_name_a6ea08ec_like'.