// FetchUserByEmail retrieves a user from the underlying data store
// by their email address.
FetchUserByEmail retrieves a user from the underlying data store
by their email address.
// FetchUserByEmail retrieves a user from the underlying data store // by their email address .
func (s *Store) FetchUserByEmail(ctx context.Context, eml string) (user.User, error) {
	usr := &user.Core{}
	if err := s.q.GetContext(ctx, s.db, usr, "select_user_by_email", eml); err != nil {
		return nil, detectErr(err)
	}
	return usr, nil
}
func ( s * Store ) FetchUserByEmail ( ctx context . Context , eml string ) ( user . User , error ) { usr := & user . Core { } if err := s . q . GetContext ( ctx , s . db , usr , " " , eml ) ; err != nil { return nil , detectErr ( err ) } return usr , nil }
FetchUserByEmail retrieves a user from the underlying data store
by their email address.
FetchUserByEmail retrieves a user from the underlying data store by their email address .