code: func AuthUsersByUsername(db XODB, username string) ([]*AuthUser, error) {
  	var err error
  
  	// sql query
  	const sqlstr = `SELECT ` +
  		`id, password, last_login, is_superuser, username, first_name, last_name, email, is_staff, is_active, date_joined ` +
  		`FROM public.auth_user ` +
  		`WHERE username = $1`
  
  	// run query
  	XOLog(sqlstr, username)
  	q, err := db.Query(sqlstr, username)
  	if err != nil {
  		return nil, err
  	}
  	defer q.Close()
  
  	// load results
  	res := []*AuthUser{}
  	for q.Next() {
  		au := AuthUser{
  			_exists: true,
  		}
  
  		// scan
  		err = q.Scan(&au.ID, &au.Password, &au.LastLogin, &au.IsSuperuser, &au.Username, &au.FirstName, &au.LastName, &au.Email, &au.IsStaff, &au.IsActive, &au.DateJoined)
  		if err != nil {
  			return nil, err
  		}
  
  		res = append(res, &au)
  	}
  
  	return res, nil
  }
docs: // AuthUsersByUsername retrieves a row from 'public.auth_user' as a AuthUser.
  //
  // Generated from index 'auth_user_username_6821ab7c_like'.