ent / ent/ent

Proposal: As Go 1.23 introduced `iter`, we could consider to provide `iter` based `Scan` method (called `Iter()` or others)

Open
#4,185 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
17.2k
Forks
1k
PR merge metrics
No merged PRs in 30d

Description

- [x] I have searched the [issues](https://github.com/ent/ent/issues) of this repository and believe that this is not a duplicate.

## Summary 💡

From the user side, the signature cloud be

```go
func (...) Scan(ctx context.Context, v any) error

func (...) Iter(ctx context.Context) iter.Seq[Row]
```

## Motivation 🔦

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.