code: func AuthUserByUsername(db XODB, username sql.NullString) (*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 django.auth_user ` +
  		`WHERE username = :1`
  
  	// run query
  	XOLog(sqlstr, username)
  	au := AuthUser{
  		_exists: true,
  	}
  
  	err = db.QueryRow(sqlstr, username).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
  	}
  
  	return &au, nil
  }
docs: // AuthUserByUsername retrieves a row from 'django.auth_user' as a AuthUser.
  //
  // Generated from index 'sys_c004977'.