code: func AuthGroupByName(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)
  	ag := AuthGroup{
  		_exists: true,
  	}
  
  	err = db.QueryRow(sqlstr, name).Scan(&ag.ID, &ag.Name)
  	if err != nil {
  		return nil, err
  	}
  
  	return &ag, nil
  }
docs: // AuthGroupByName retrieves a row from 'public.auth_group' as a AuthGroup.
  //
  // Generated from index 'auth_group_name_key'.